Wrox Programmer Forums
|
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 9th, 2004, 10:59 AM
Authorized User
 
Join Date: Nov 2003
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to seanmayhew
Default Fixing virtual directory root path issue

I've been working at removing that stupid /ThePhile/ virtual directory path from my app and it seems pretty successful so far. I've changed the root directory of my Default Web Site for testing purposes to C:\inetpub\wwwroot\MyApp\ the only problem Im having is that now when I "View in Browser" from within Visual Studio my default.aspx page its still looking in http://localhost/MyApp/default.aspx and I get the following error:

Code:
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 'C:\Inetpub\wwwroot\MyAPP\MyAPP\'. The directory does not exist or is not accessible because of security settings.]
Server Error in '/MyAPP' Application.
Server cannot access application directory 'C:\Inetpub\wwwroot\MyAPP\MyAPP\'. 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:\Inetpub\wwwroot\MyAPP\MyAPP\'. The directory does not exist or is not accessible because of security settings.
However if I browse directly to http://localhost/ outside of visual studio it works fine. So I must be missing a property somewhere any help would be greatly appreciated.

 
Old November 10th, 2004, 10:45 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am guessing you missed changing the path in the .sln file, or one of the .proj files. Open these in notepad and look around.

Eric





Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving server root outside virtual machine centaury Internet Information Services 3 October 7th, 2008 12:10 AM
Virtual Path property ksmanand ASP.NET 3.5 Basics 2 October 5th, 2008 10:49 AM
changing root path in file manager codergirl BOOK: ASP.NET Website Programming Problem-Design-Solution 3 November 11th, 2004 04:21 PM
Root Directory Chudz BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 1 July 11th, 2004 03:13 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.