Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / December 2004

Tip: Looking for answers? Try searching our database.

aspx in virtual directory

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ricardo Machado - 27 Dec 2004 11:29 GMT
Hi,
I’m trying to run an aspx page in a virtual directory in my IIS, and getting
the error below.
Please, where I should fix to make it run?  I’ve tried many security changes
in directories, without success.  The html and asp pages are running fine.

Thanks in advance.
Ricardo

Aspx Error:
Server cannot access application directory 'E:\Documents and
Settings\Ricardo\My Documents\My Web Sites\SSLF\'. The directory does not
exist or is not accessible because of security settings.

Stack Trace:
[HttpException (0x80004005): Server cannot access application directory
'E:\Documents and Settings\Ricardo\My Documents\My Web Sites\SSLF\'. The
directory does not exist or is not accessible because of security settings.]
  System.Web.HttpRuntime.EnsureAccessToApplicationDirectory() +72
  System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +263

[HttpException (0x80004005): ASP.NET Initialization Error]
  System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +983
  System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +128
Cowboy (Gregory A. Beamer) - MVP - 28 Dec 2004 03:47 GMT
you have a security issue. Without knowing more about how you got your
virtual root outside of Inetpub (or whether the root shows up correctly in
IIS), I have to venture that the easiest way to solve the issue is opening
the Microsoft .NET Configuration under Administration tools and opening
access to the file system.

With the location "My Web Sites", this looks like a FrontPage kind of set up
or a root created using "My Network Places" in Windows Explorer. It is not a
normal IIS setup.

Normally, it is easier to create the site in Visual Studio and then attach
your HTML editor to the URL. It causes far less grief than straightening out
messes later. (Assuming FrontPage, etc., is the root of the problem).
---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************

> Hi,
> I’m trying to run an aspx page in a virtual directory in my IIS, and getting
[quoted text clipped - 20 lines]
>    System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +983
>    System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +128

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.