Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Run my website in localhost
Message
From
25/10/2007 17:55:38
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
 
 
To
25/10/2007 17:42:15
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:
01263864
Views:
12
>Hi Paul,
>
Are you using 2.0?

>It is showing my login name when I put this code in Page_Load. I also have edited the User name and put sdeleon in it, but it still does not work. Please help.
>
>Thanks,
>Sam
>
>>>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.
Very fitting: http://xkcd.com/386/
Previous
Reply
Map
View

Click here to load this message in the networking platform