>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.