Google Answers Logo
View Question
 
Q: asp.net error: Server cannot access application directory ( No Answer,   0 Comments )
Question  
Subject: asp.net error: Server cannot access application directory
Category: Computers > Programming
Asked by: musti-ga
List Price: $10.00
Posted: 26 Mar 2003 09:57 PST
Expires: 31 Mar 2003 19:35 PST
Question ID: 181211
Server Error in '/' Application. 
I am trying to reach some aspx pages on a website which is written
mostly in ASP 3.0. I installed the .net framework (I get the same
error message for both 1.0 and 1.1), however, when I try to reach the
aspx page, I get the following error. (error description is below)
I read the msdn article, which suggests it migth be an issue of not
giving appropriate rights to the folder, but the folder is a virtual
directory and Everyone has read access to it (asp 3.0 works fine
anyway). Any insights into what setting I need to fix to get it to
work?

Error Description:

Server cannot access application directory
'D:\inetpub\wwwroot\MyVirtualDirectory\'. 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 'D:\inetpub\wwwroot\MyVirtualDirectory\'. The
directory does not exist or is not accessible because of security
settings.

Source Error: 

An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.

Stack Trace: 

[HttpException (0x80004005): Server cannot access application
directory 'D:\inetpub\wwwroot\MyVirtualDirectory\'. The directory does
not exist or is not accessible because of security settings.]
  System.Web.HttpRuntime.EnsureAccessToApplicationDirectory() +72
  System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +263

[HttpException (0x80004005): ASP.NET Initialization Error]
  System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +956
  System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
+128

Request for Question Clarification by studboy-ga on 26 Mar 2003 16:01 PST
Have you set the virtual directory up as an application in IIS?

Clarification of Question by musti-ga on 26 Mar 2003 17:05 PST
Hi, 
Actually, I just solved the problem. (The answer to your question was:
Yes, it was set up as an application). The problem was that the user
Everyone must be given read access to the folder. What was suggested
in the msdn answer (according to which, you could give certain rights
to "[machinename]/ASPNET" user if user "Everyone" was not given read
rights) simply did not work.
Thank you for your prompt interest.
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy