By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,558 Members | 1,533 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,558 IT Pros & Developers. It's quick & easy.

Server cannot access application directory

P: n/a
Hi,

I'm trying to setup a web server to host asp.net 1.1... but keep getting the
following error message:

Hopefully someone can give me some ideas on what I may need to do.

Thanks in advance - Grant.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Server Error in '/infosys226' Application
--------------------------------------------------------------------------------

Server cannot access application directory 'D:\inetpub\online\infosys226\'.
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\online\infosys226\'. 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\online\infosys226\'. The directory does not exist or is not
accessible because of security settings.]
System.Web.HttpRuntime.EnsureAccessToApplicationDi rectory() +72
System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +263

[HttpException (0x80004005): ASP.NET Initialization Error]
System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +982
System.Web.HttpRuntime.ProcessRequestInternal(Http WorkerRequest wr) +128


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET
Version:1.1.4322.2032
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Nov 19 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
The answer is in the error -- the NT filesystem security is preventing the
application hosting ASP.NET from reading the ASP.NET pages. If you're running
under W2K then the DACLs need to allow the local ASPNET account read access.
If it's W2K3 then it's the Network Service account that requires read access.

-Brock
DevelopMentor
http://staff.develop.com/ballen
Hi,

I'm trying to setup a web server to host asp.net 1.1... but keep
getting the following error message:

Hopefully someone can give me some ideas on what I may need to do.

Thanks in advance - Grant.

Server Error in '/infosys226' Application.
----------------------------------------------------------------------
----------
Server cannot access application directory
'D:\inetpub\online\infosys226\'. 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\online\infosys226\'. 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\online\infosys226\'. The directory does not exist or is
not
accessible because of security settings.]
System.Web.HttpRuntime.EnsureAccessToApplicationDi rectory() +72
System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +263
[HttpException (0x80004005): ASP.NET Initialization Error]
System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +982
System.Web.HttpRuntime.ProcessRequestInternal(Http WorkerRequest wr)
+128
----------------------------------------------------------------------
---------- Version Information: Microsoft .NET Framework
Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032


Nov 19 '05 #2

P: n/a
Hello Grant,

Have you tried or verified that the ASP.NET account on the particular
website/virtual directory/virtual root has read, execute and list access?

If not you may want to give that a try. It helped me.

Have a look at the following KB article.

http://support.microsoft.com/default...b;EN-US;316721

You can do this by checking the ASPNET account properties in Local Users and
Groups.

Good luck!

____________________
James Steele
Senior .NET Consultant
as***********@gmail.com
http://weblogs.asp.net/jamessteele

"Grant" <Gr***@discussions.microsoft.com> wrote in message
news:20**********************************@microsof t.com...
Hi,

I'm trying to setup a web server to host asp.net 1.1... but keep getting
the
following error message:

Hopefully someone can give me some ideas on what I may need to do.

Thanks in advance - Grant.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Server Error in '/infosys226' Application.
--------------------------------------------------------------------------------

Server cannot access application directory
'D:\inetpub\online\infosys226\'.
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\online\infosys226\'. 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\online\infosys226\'. The directory does not exist or is not
accessible because of security settings.]
System.Web.HttpRuntime.EnsureAccessToApplicationDi rectory() +72
System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +263

[HttpException (0x80004005): ASP.NET Initialization Error]
System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +982
System.Web.HttpRuntime.ProcessRequestInternal(Http WorkerRequest wr) +128


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032;
ASP.NET
Version:1.1.4322.2032
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>


Nov 19 '05 #3

P: n/a
Hi Brock,

Thanks - we hadn't set the Network Service account at the root level -
working now.

Cheers,

Grant.

"Brock Allen" wrote:
The answer is in the error -- the NT filesystem security is preventing the
application hosting ASP.NET from reading the ASP.NET pages. If you're running
under W2K then the DACLs need to allow the local ASPNET account read access.
If it's W2K3 then it's the Network Service account that requires read access.

-Brock
DevelopMentor
http://staff.develop.com/ballen
Hi,

I'm trying to setup a web server to host asp.net 1.1... but keep
getting the following error message:

Hopefully someone can give me some ideas on what I may need to do.

Thanks in advance - Grant.

Server Error in '/infosys226' Application.
----------------------------------------------------------------------
----------
Server cannot access application directory
'D:\inetpub\online\infosys226\'. 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\online\infosys226\'. 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\online\infosys226\'. The directory does not exist or is
not
accessible because of security settings.]
System.Web.HttpRuntime.EnsureAccessToApplicationDi rectory() +72
System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +263
[HttpException (0x80004005): ASP.NET Initialization Error]
System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +982
System.Web.HttpRuntime.ProcessRequestInternal(Http WorkerRequest wr)
+128
----------------------------------------------------------------------
---------- Version Information: Microsoft .NET Framework
Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032


Nov 19 '05 #4

P: n/a
Hi James,

thanks for your reply. We had set to read, ex, list already but still wasn't
working...

Brocks suggestion of the Network Service account requiring read access was
the solution. We hadn't set it to the root level - all working now.

Thanks again,

Grant.

"James Steele" wrote:
Hello Grant,

Have you tried or verified that the ASP.NET account on the particular
website/virtual directory/virtual root has read, execute and list access?

If not you may want to give that a try. It helped me.

Have a look at the following KB article.

http://support.microsoft.com/default...b;EN-US;316721

You can do this by checking the ASPNET account properties in Local Users and
Groups.

Good luck!

____________________
James Steele
Senior .NET Consultant
as***********@gmail.com
http://weblogs.asp.net/jamessteele

"Grant" <Gr***@discussions.microsoft.com> wrote in message
news:20**********************************@microsof t.com...
Hi,

I'm trying to setup a web server to host asp.net 1.1... but keep getting
the
following error message:

Hopefully someone can give me some ideas on what I may need to do.

Thanks in advance - Grant.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>


Server Error in '/infosys226' Application.
--------------------------------------------------------------------------------

Server cannot access application directory
'D:\inetpub\online\infosys226\'.
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\online\infosys226\'. 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\online\infosys226\'. The directory does not exist or is not
accessible because of security settings.]
System.Web.HttpRuntime.EnsureAccessToApplicationDi rectory() +72
System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +263

[HttpException (0x80004005): ASP.NET Initialization Error]
System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +982
System.Web.HttpRuntime.ProcessRequestInternal(Http WorkerRequest wr) +128


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032;
ASP.NET
Version:1.1.4322.2032
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>



Nov 19 '05 #5

P: n/a
Brock
So does W2K3 uses Network Service account and not ASPNET acct anymore.

*** Sent via Developersdex http://www.developersdex.com ***
Nov 19 '05 #6

P: n/a
Correct, as long as you don't revert to IIS5 mode on W2K3 (and normally you
wouldn't). This is configurable, BTW, via the IIS manager MMC. If you find
the AppPool that your application is configured/hosted in you can get the
properties and choose the Identity tab to specify a different account (if
necessary).

-Brock
DevelopMentor
http://staff.develop.com/ballen
Brock
So does W2K3 uses Network Service account and not ASPNET acct anymore.
*** Sent via Developersdex http://www.developersdex.com ***


Nov 19 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.