Standardwebsite auf ein anderes Laufwerk verschieben

900
Chad

Ich habe den Standardspeicherort von c:\inetpub\wwwrootauf festgelegt, d:\inetpub\wwwrootaber wenn ich auf meine .NET 4.0-Site zugreife, wird diese Fehlermeldung angezeigt :

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.   Parser Error Message: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.  Source Error:   Line 105: Set explicit="true" to force declaration of all variables. Line 106: --> Line 107: <compilation debug="true" strict="true" explicit="true" targetFramework="4.0"> Line 108: <assemblies> Line 109: <add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 

Wenn ich versuche, die Grundeinstellungen auf der Site zu verwalten und auf die Schaltfläche "Testeinstellungen" zu klicken, sehe ich, dass unter "Autorisierung:" ein Problem aufgetreten ist.

The server is configured to use pass-through authentication with a  built-in account to access the specified physical path. However,  IIS Manager cannot verify whether the built-in account has access.  Make sure that the application pool identity has Read access to the  physical path. If this server is joined to a domain, and the application  pool identity is NetworkService or LocalSystem, verify that  <domain>\<computer_name>$ has Read access to the physical path. Then  test these settings again. 
  1. Muss ich dem neuen Ordner Rechte an IIS erteilen? Welcher Benutzer? Ich dachte, es wäre etwas wie IIS_USER oder etwas Ähnliches, aber ich kann den korrekten Namen des Benutzers nicht ermitteln.

  2. Muss ich auch die Standardversion des Frameworks irgendwo auf der Ebene der Standard-Sites oder auf der Ebene des virtuellen Ordners festlegen? Wie wird dies in IIS6 gemacht? Ich bin an IIS5 gewöhnt oder was auch immer mit XP Pro geliefert wurde.

  3. Meine ursprüngliche Site hatte einen Unterordner mit dem Namen "aspnet_client" unter "wwwroot". Wie wurde das geschaffen? Ich habe es manuell an den entsprechenden neuen Speicherort kopiert. Meine App verwendete separate ASP-spezifische Datenbanken zum Speichern des Sitzungsstatus und der Rolleninformationen, sofern dies relevant ist.

Vielen Dank

1

2 Antworten auf die Frage

1
Jimmy

Given the error message you're seeing, it looks like your site isn't running with .NET 4 (where the targetFramework attribute was introduced). Check the settings for your AppPool and make sure it's set for .NET 4.

0
Chad

Inspect the permissions on the original IIS web site root folder and you will see that the user group IIS_IUSRS is given all but Modify and Full Control rights. You'll see also that "Trusted Installer" is given access. I have no clue how to add this dude to the new folder rights.

To set the .NET version for the site or the web site, select the folder, click Advance Setting, click on App Pool and then select the appropriate .NET version.

Chad, du Scheißkerl. Chad vor 13 Jahren 0