473,406 Members | 2,371 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,406 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 8463
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.