B
Bruce
I am doing development work on an asp.net app and a web service on a Win XP
Pro SP2 development workstation, using vs.net 2003. For reasons that I
wont try to explain here, I recently moved the application files from
/inetpub/wwwrooot to a directory within "my documents", and I changed the
home directory within IIS accordingly.
However, now when I try to open a new Web Service project in vs.net, I get a
dialog box with this error: "Microsoft Development Environment, The Web
server reported the following error when attempting to create or open the
Web project located at the following URL: http://localhost/test/WebService1.
"HTTP/1.1 500 Internal Server Error".
From Googling newsgroups, I see that one likely solution would be to grant
the ASPNET process access rights to the target directory (read, list folder
contents, r&e). I tried that, but no luck. Another article described the
need to grant these rights sequentially to each level of the directory from
my target all the way up to c:\. I tried that, but no luck.
I also noticed that existing asp.net pages that worked fine in their old
locations in /inetput/wwwroot do not work in their new locations, even after
going into IIS and creating new "applications" for them. When I try to load
one of those asp.net pages, I get an error message in the browser which I
cut-and-pasted below.
What could be the cause and solution?
Thanks, Bruce
-------------------------------
Server Error in '/' Application.
--------------------------------------------------------------------------------
Server cannot access application directory 'C:\Documents and
Settings\bruce\My Documents\HomePage\Inetpub\wwwroot\'. 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\bruce\My
Documents\HomePage\Inetpub\wwwroot\'. 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
'C:\Documents and Settings\bruce\My Documents\HomePage\Inetpub\wwwroot\'.
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) +983
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +128
Pro SP2 development workstation, using vs.net 2003. For reasons that I
wont try to explain here, I recently moved the application files from
/inetpub/wwwrooot to a directory within "my documents", and I changed the
home directory within IIS accordingly.
However, now when I try to open a new Web Service project in vs.net, I get a
dialog box with this error: "Microsoft Development Environment, The Web
server reported the following error when attempting to create or open the
Web project located at the following URL: http://localhost/test/WebService1.
"HTTP/1.1 500 Internal Server Error".
From Googling newsgroups, I see that one likely solution would be to grant
the ASPNET process access rights to the target directory (read, list folder
contents, r&e). I tried that, but no luck. Another article described the
need to grant these rights sequentially to each level of the directory from
my target all the way up to c:\. I tried that, but no luck.
I also noticed that existing asp.net pages that worked fine in their old
locations in /inetput/wwwroot do not work in their new locations, even after
going into IIS and creating new "applications" for them. When I try to load
one of those asp.net pages, I get an error message in the browser which I
cut-and-pasted below.
What could be the cause and solution?
Thanks, Bruce
-------------------------------
Server Error in '/' Application.
--------------------------------------------------------------------------------
Server cannot access application directory 'C:\Documents and
Settings\bruce\My Documents\HomePage\Inetpub\wwwroot\'. 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\bruce\My
Documents\HomePage\Inetpub\wwwroot\'. 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
'C:\Documents and Settings\bruce\My Documents\HomePage\Inetpub\wwwroot\'.
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) +983
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +128