473,721 Members | 2,234 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Permissions Issues with ASPNET Account

For some unexplained reason, I am suddenly unable to browse to a virtual
directory on my laptop. I have a number of sample websites to which I could
happliy browse up until last week. As of Monday, if I browse to any of the
sites, I get an HttpException saying "The directory does not exist or is not
accessible because of security settings." I honestly have not changed
anything at all.

I have checked and re-checked that ASPNET indeed has the three required
permissions on the virtual directories (ie. Read, Read & Execute, and List
Folder Contents). As a workaround, the only way that I am able to currently
browse to the sample websites is I 'upgrade' the access level privilege in
the machine.config as follows:

Go to folder C:\WINNT\Micros oft.NET\Framewo rk\v1.1.4322\CO NFIG, and edit the
machine.config file. Find <processModel enable="true" timeout="Infini te"....
and change the username attribute from 'machine' to 'system'. Save the file,
and restart IIS.

I have trawled the internet in the last couple of days, and have discovered
many others have experienced the same problem. For most, it was a matter of
applying the ASPNET account permissions to the virtual folder, but there are
still a number of other people (like myself) for whom this problem persists.
I have even ran aspnet_regiis.e xe, but still no joy.

My system specification is as follows:

Windows XP Professional SP1.
Internet Explorer 6.0.2800 SP2.
..NET Framework v1.1
Visual Studio .NET 2003

Below is the exception:

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

Server cannot access application directory 'E:\Documents and
Settings\...<Su bFolders>...\'. 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.Http Exception: Server cannot access
application directory 'E:\Documents and Settings\...<Su bFolders>...\'. 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
'E:\Documents and Settings\...<Su bFolders>...\'. The directory does not exist
or is not accessible because of security settings.]
System.Web.Http Runtime.EnsureA ccessToApplicat ionDirectory() +72
System.Web.Http Runtime.FirstRe questInit(HttpC ontext context) +264

[HttpException (0x80004005): ASP.NET Initialization Error]
System.Web.Http Runtime.FirstRe questInit(HttpC ontext context) +990
System.Web.Http Runtime.Process RequestInternal (HttpWorkerRequ est wr) +128

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.432 2.2032; ASP.NET
Version:1.1.432 2.2032

Does anyone know what could be the problem???

Can anyone provide any assistance to resolve it???

--
....Yogesh
"If a pig loses its voice, is it disgruntled???"
Nov 19 '05 #1
2 1550
Is E a mapped drive? A mapped drive works only for the current logon session
which isn't the one ASP.NET is running in since it's running as a different
user.

-Brock
DevelopMentor
http://staff.develop.com/ballen
For some unexplained reason, I am suddenly unable to browse to a
virtual directory on my laptop. I have a number of sample websites to
which I could happliy browse up until last week. As of Monday, if I
browse to any of the sites, I get an HttpException saying "The
directory does not exist or is not accessible because of security
settings." I honestly have not changed anything at all.

I have checked and re-checked that ASPNET indeed has the three
required permissions on the virtual directories (ie. Read, Read &
Execute, and List Folder Contents). As a workaround, the only way that
I am able to currently browse to the sample websites is I 'upgrade'
the access level privilege in the machine.config as follows:

Go to folder C:\WINNT\Micros oft.NET\Framewo rk\v1.1.4322\CO NFIG, and
edit the machine.config file. Find <processModel enable="true"
timeout="Infini te".... and change the username attribute from
'machine' to 'system'. Save the file, and restart IIS.

I have trawled the internet in the last couple of days, and have
discovered many others have experienced the same problem. For most, it
was a matter of applying the ASPNET account permissions to the virtual
folder, but there are still a number of other people (like myself) for
whom this problem persists. I have even ran aspnet_regiis.e xe, but
still no joy.

My system specification is as follows:

Windows XP Professional SP1.
Internet Explorer 6.0.2800 SP2.
.NET Framework v1.1
Visual Studio .NET 2003
Below is the exception:

Server Error in '/EC315CH02' Application.
----------------------------------------------------------------------
----------
Server cannot access application directory 'E:\Documents and
Settings\...<Su bFolders>...\'. 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.Http Exception: Server cannot access
application directory 'E:\Documents and Settings\...<Su bFolders>...\'.
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
'E:\Documents and Settings\...<Su bFolders>...\'. The directory does
not exist
or is not accessible because of security settings.]
System.Web.Http Runtime.EnsureA ccessToApplicat ionDirectory() +72
System.Web.Http Runtime.FirstRe questInit(HttpC ontext context) +264
[HttpException (0x80004005): ASP.NET Initialization Error]
System.Web.Http Runtime.FirstRe questInit(HttpC ontext context) +990
System.Web.Http Runtime.Process RequestInternal (HttpWorkerRequ est wr)
+128
----------------------------------------------------------------------
---------- Version Information: Microsoft .NET Framework
Version:1.1.432 2.2032; ASP.NET Version:1.1.432 2.2032

Does anyone know what could be the problem???

Can anyone provide any assistance to resolve it???


Nov 19 '05 #2
No, Drive E is a local hard drive.

Cheers....

.....Yogesh
"Brock Allen" wrote:
Is E a mapped drive? A mapped drive works only for the current logon session
which isn't the one ASP.NET is running in since it's running as a different
user.

-Brock
DevelopMentor
http://staff.develop.com/ballen
For some unexplained reason, I am suddenly unable to browse to a
virtual directory on my laptop. I have a number of sample websites to
which I could happliy browse up until last week. As of Monday, if I
browse to any of the sites, I get an HttpException saying "The
directory does not exist or is not accessible because of security
settings." I honestly have not changed anything at all.

I have checked and re-checked that ASPNET indeed has the three
required permissions on the virtual directories (ie. Read, Read &
Execute, and List Folder Contents). As a workaround, the only way that
I am able to currently browse to the sample websites is I 'upgrade'
the access level privilege in the machine.config as follows:

Go to folder C:\WINNT\Micros oft.NET\Framewo rk\v1.1.4322\CO NFIG, and
edit the machine.config file. Find <processModel enable="true"
timeout="Infini te".... and change the username attribute from
'machine' to 'system'. Save the file, and restart IIS.

I have trawled the internet in the last couple of days, and have
discovered many others have experienced the same problem. For most, it
was a matter of applying the ASPNET account permissions to the virtual
folder, but there are still a number of other people (like myself) for
whom this problem persists. I have even ran aspnet_regiis.e xe, but
still no joy.

My system specification is as follows:

Windows XP Professional SP1.
Internet Explorer 6.0.2800 SP2.
.NET Framework v1.1
Visual Studio .NET 2003
Below is the exception:

Server Error in '/EC315CH02' Application.
----------------------------------------------------------------------
----------
Server cannot access application directory 'E:\Documents and
Settings\...<Su bFolders>...\'. 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.Http Exception: Server cannot access
application directory 'E:\Documents and Settings\...<Su bFolders>...\'.
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
'E:\Documents and Settings\...<Su bFolders>...\'. The directory does
not exist
or is not accessible because of security settings.]
System.Web.Http Runtime.EnsureA ccessToApplicat ionDirectory() +72
System.Web.Http Runtime.FirstRe questInit(HttpC ontext context) +264
[HttpException (0x80004005): ASP.NET Initialization Error]
System.Web.Http Runtime.FirstRe questInit(HttpC ontext context) +990
System.Web.Http Runtime.Process RequestInternal (HttpWorkerRequ est wr)
+128
----------------------------------------------------------------------
---------- Version Information: Microsoft .NET Framework
Version:1.1.432 2.2032; ASP.NET Version:1.1.432 2.2032

Does anyone know what could be the problem???

Can anyone provide any assistance to resolve it???


Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1075
by: DC Gringo | last post by:
I accidentally changed permissions on a large number of files for my machine/aspnet account. Is there an easy way to restore the defaults? -- _____ DC G
2
3251
by: Matthew Lee | last post by:
I am using a C# / ASP.NET application to fire an XCOPY job from the webserver to a UNC share. This setup works fine when copying to a local machine but refuses to work on the remote copy. The process executes correctly, but XCOPY returns "invalid drive specification", which I'm guessing actually means that the current user context (ASP.NET application) can't access the share (e.g. \\someserver\c$\mydir\) Anyway, here's where I'm at...
3
5688
by: Doctor Who | last post by:
I am running a Windows 2003 Server w/Framework 1.1 loaded. We have built a ..NET 2003 app and it requires that ASPNET be assigned permissions to several folders and servcies. The ASPNET account does not exist on the server (viewed through Active Directory). The accounts IUSR_WIN2K3SRVR and IWAM_WIN2K3SRVR do exist. I thought that the Framework installation would automatically create the ASPNET account - it does appear on other...
2
1112
by: Simon Harris | last post by:
Hi All, I've recently install the framework on a web server (First 'production' one I've done) Should the ASPNET account have read/write access to the web root and beyond? Or just the areas where I'll use asp.net? Or perhaps just read access? (With write access to specific areas where maybe txt files are amended?) Would appreciate a little guideance.
2
1141
by: djoledjole | last post by:
I must give ACL permissions to ASPNET account on the file.How to do this from ASP.NET code(VB.NET)
1
1241
by: Joel Leong | last post by:
Hi All, I wish to clone ASPNET account and my web app will impersonate to this account. I don't wish to remove the ASPNET account away because some other applications are utilizing this ASPNET account. The reason behind cloning the ASPNET account is my app utilizing a lot of network resources and remote OLAP database that requires extra permissions. I'll grant this domain account extra permissions to accomplish these tasks.
7
1666
by: M. Simioni | last post by:
Hi, i'm always auditing ASPNET's account accesses on my webserver, a WIN2K_SP4 + IIS5 + SQLServer2K_SP3a machine. Nearly all the applications work correctly, but i constantly find a message in the event viewer under the protection log, that says: --------------------------------------- Apertura oggetto: Server oggetto: Security Tipo oggetto: File
4
11782
by: palakwai_919 | last post by:
We have a Windows 2000 server with Beta 2 of the 2.0 Framework installed and the 1.1 Framework. For some odd reason when we hit our 2.0 Framework application we get the following error: Server Application Unavailable The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request. Administrator Note: An error message detailing the...
5
1793
by: Paul Aspinall | last post by:
Hi I am trying to print, server side, from my web application. I'm getting problems, as my ASPNET account is a local account, and is not trusted on the domain to print to printers (ie. does not belong to 'Users' group) What is the best way round this?? I've asked the security guys to specifically add the account with
0
8730
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9215
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8007
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6669
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5981
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4484
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4753
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3189
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2576
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.