473,320 Members | 1,910 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Server cannot access application directory

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
6 8881
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
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
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
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
Brock
So does W2K3 uses Network Service account and not ASPNET acct anymore.

*** Sent via Developersdex http://www.developersdex.com ***
Nov 19 '05 #6
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Robert | last post by:
I get these errors when creating a asp .net web application project in VS 2003 on a remote web server: "Microsoft Development Environment The Web was created successfully, but an error occurred...
0
by: Amol Shambharkar | last post by:
Hello Everyone, I am hoping someone could help me out with this.I am using Visual Studio .NET 2003 to create a web application on a remote IIS 5.0 server using the File Share web access method.The...
1
by: Chris | last post by:
I am runnig IIS 5.0 on W2k. I am not able to run asp.net pages. Application mappings show all .net extensions and .NET 1.1 is installed. I get the following error:
5
by: Bruce Schechter | last post by:
I just started to develop an ASP.NET application in vs.net 2003 . But each time I try to execute the application (which is basically empty so far), I get a dialog box titled "Microsoft Development...
0
by: Peter D. Dunlap | last post by:
I have a number of web sites on my 2003 server, each of the independent sites (i.e., not subdirectories of the localhost site). The way I have always set these up in the past is: 1. Create a...
0
by: M | last post by:
I installed the Visual Basic .NET Resource Kit. When I click 'Visual Basic .NET Resource Kit' the page at 'http://localhost/VB.NETResourceKit/Welcome.aspx' show: Server Error in...
2
by: Matthias Wohlmann | last post by:
Hi, I'm getting the following error when trying to start my application using Internet Explorer: "Server cannot access application directory D:\xxx. The directory does not exist or is not...
17
by: Jon B | last post by:
Hi All! I have a ASP.NET 2.0 site that works on the Windows 2000 Server. However, when I tried to view this site on my local Windows XP machine, I get "Server Unavailable". If I switch the...
1
by: rajalingam | last post by:
Server Error in '/library' Application. -------------------------------------------------------------------------------- Server cannot access application directory 'F:\Library Latest Code\'. The...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.