472,986 Members | 2,851 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Virtual directory error: "directory does not exist or is not accessible because of security settings"

I am getting te following error in a ASP.Net app that is running on Win XP
Pro (SP2):

Server cannot access application directory 'C:\Documents and
Settings\dave\My Documents\My Visual Studio ASP.NET\MyWebSite\'. 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\dave\My Documents\My Visual
Studio ASP.NET\MyWebSite\'. The directory does not exist or is not
accessible because of security settings.
The application is in a virtual directory called DotNet.

ASP.Net apps that I create directly in the wwwwroot folder display without
error. It is only in the virtual directory that I am having problems with
permissions.

I turned directory browsing on and I can see the contents of the virtual
directory root (//DELL9/dotnet/) but I cannot see the contents of the web
app (//DELL9/dotnet/MyWebSite) i.e. I get the above error when I try to
browse.

I tried adding the user ASPNET to the security settings for the folder at
'C:\Documents and Settings\dave\My Documents\My Visual Studio
ASP.NET\MyWebSite' but this does not work either.

What do I need to do to set permissions for the virtual directory?



Nov 19 '05 #1
1 8356
Hi Dave,

Welcome to ASPNET newsgroup.
From your description, the error you encountered is likely caused by the
asp.net application's physical path. Since ASP.NET application is a service
app which running in a non-interactive session, so it won't be able to
access those resources that are user specific. So for your scenario, I'd
suggest you move the application out of the "Document settings..." and
its sub dir, put them into a normal public location like:

d:\folders... or just beneath "inetpub\wwwroot...."

Also, to get the exact cause of the accessing problem, you can consider
using filemon to trace the file accessing during your application's startup.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)



--------------------
| From: "Dave" <da*******@newsgroup.nospam>
| Subject: Virtual directory error: "directory does not exist or is not
accessible because of security settings"
| Date: Sun, 23 Oct 2005 01:55:18 -0700
| Lines: 40
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
| Message-ID: <OL**************@TK2MSFTNGP14.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: c-24-130-14-93.hsd1.ca.comcast.net 24.130.14.93
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP14.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:133305
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| I am getting te following error in a ASP.Net app that is running on Win
XP
| Pro (SP2):
|
| Server cannot access application directory 'C:\Documents and
| Settings\dave\My Documents\My Visual Studio ASP.NET\MyWebSite\'. 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\dave\My Documents\My
Visual
| Studio ASP.NET\MyWebSite\'. The directory does not exist or is not
| accessible because of security settings.
|
|
| The application is in a virtual directory called DotNet.
|
| ASP.Net apps that I create directly in the wwwwroot folder display
without
| error. It is only in the virtual directory that I am having problems
with
| permissions.
|
| I turned directory browsing on and I can see the contents of the virtual
| directory root (//DELL9/dotnet/) but I cannot see the contents of the web
| app (//DELL9/dotnet/MyWebSite) i.e. I get the above error when I try to
| browse.
|
| I tried adding the user ASPNET to the security settings for the folder at
| 'C:\Documents and Settings\dave\My Documents\My Visual Studio
| ASP.NET\MyWebSite' but this does not work either.
|
| What do I need to do to set permissions for the virtual directory?
|
|
|
|
|
|
|
|

Nov 19 '05 #2

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

Similar topics

4
by: Ed | last post by:
Hello All, I posted earlier about a problem I was having with editing or pasting/deleting files in the "Home Directory" of my web server. I just noticed that the "Home Directory" option in the...
1
by: Dave | last post by:
Hi all, I was trying to make an image submit button with a rollover and discovered to my suprise that there is no way to access a form element of the "image" type. I tried specifying it by name...
2
by: S.Peppe | last post by:
Hi there! I'm really new at this game, so please forgive me if my request is at all irritating. I have installed PostgreSQL onto a Debian/Linux machine, and I have just upgraded PostgreSQL via...
0
by: Dirk Försterling | last post by:
Hi all, a few days ago, I upgraded from PostgreSQL 7.2.1 to 7.4, following the instructions in the INSTALL file, including dump and restore. All this worked fine without any error (message). ...
6
by: John Baker | last post by:
Hi: Does "On Open" code execute before or after related data is loaded? I want to test before the form appears on the screen to see if there is any data in the queryresult, and if there is not...
10
by: Roy | last post by:
Judging from the sheer number of posts on this topic, I'm sensing this is a fairly common problem. Only problem is, I've tried just about every recommendation in all the posts I've found thus far...
1
by: Light | last post by:
Re, I'm having 2 problems with the Telerik trial controls. I'm using the latest release. I'm using 2005 studio and most of the controls show up properly in the designer but the RadMenu does...
21
by: comp.lang.tcl | last post by:
set php {<? print_r("Hello World"); ?>} puts $php; # PRINTS OUT <? print_r("Hello World"); ?> puts When I try this within TCL I get the following error:
0
by: Crash | last post by:
..NET Framework 1.x, 2.x, 3.x... ASP.NET 5.0, 5.1, 6.0... Windows Server 2000, XP, Server 2003... I am using NAnt & the NAnt contrib library to automate virtual directory maintenance tasks on...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.