BUG: "Server Error" error message when you run an ASP.NET application in offline mode by using Visual Studio IDE
On This PageSYMPTOMSWhen you upgrade the Microsoft .NET Framework from version
1.0 to 1.1, and then you try to run an ASP.NET application in Offline mode by
using Microsoft Visual Studio IDE, you may receive the following error
message: Server Error in
'/ComputerName_offline/ApplicationName'
Application Server cannot access application directory 'C:\Documents and Settings\Username\VSWebCache\ServerName\ApplicationName\'. The directory does not exist or is not accessible because of security settings. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Web.HttpException: Server cannot access application directory 'C:\Documents and Settings\Username\VSWebCache\ServerName\ApplicationName\'. The directory does not exist or is not accessible because of security settings. CAUSEWhen you upgrade the .NET Framework 1.0 to the .NET
Framework 1.1, the read permissions are not set for the ASPNET account on the
\VSWebCache folder. On Microsoft Windows Server 2003, the read permissions are
not set for the NETWORK SERVICE account. WORKAROUNDTo work around this bug, grant the ASPNET account read
permissions to the \VSWebCache folder. On Windows Server 2003, grant the
NETWORK SERVICE account read permissions to the \VSWebCache folder. To do this,
follow these steps:
STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are
listed at the beginning of this article.
MORE INFORMATIONSteps to Reproduce the BehaviorCreate a New ASP.NET Web Application
Set the Project to Work Offline and Then Test the Offline Project
REFERENCES For additional information, click the following article
number to view the article in the Microsoft Knowledge Base: 816783 (http://support.microsoft.com/kb/816783/)
PRB: ASP.NET Applications Experience Unexpected Behavior After Upgrade
APPLIES TO
| Article Translations
|

Back to the top
