Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Run my website in localhost
Message
 
To
25/10/2007 16:24:37
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
ASP.NET
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01263813
Message ID:
01263818
Views:
9
>I am trying to run my web project in localhost, but I keep getting this error:
>
>
>Server cannot access application directory 'D:\Documents and Settings\sdeleon\My Documents\Visual Studio 2005\WebSites\Practise101\'. The directory does not exist or is not accessible because of security settings.
>
>
>I have created a virtual directory pointing it to the path, but I am still having this problem. Please help. Thanks, Sam

It's probably a security issue. IIS impersonates a different user account which probably doesn't have permission to access that directory. It's easy enough to determine which user should be given access - create a test page that has this line of code in the Page_Load():

Response.Write(Environment.UserName);

It's probably something like IWAM_ or NETWORK SERVICE.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform