p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 9th, 2004, 10:59 AM
Authorized User
Points: 109, Level: 2
Points: 109, Level: 2 Points: 109, Level: 2 Points: 109, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2003
Location: , , .
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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old November 10th, 2004, 10:45 PM
Friend of Wrox
Points: 1,883, Level: 17
Points: 1,883, Level: 17 Points: 1,883, Level: 17 Points: 1,883, Level: 17
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Atlanta, Georgia, USA.
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving server root outside virtual machine centaury Internet Information Services 3 October 7th, 2008 01:10 AM
Virtual Path property ksmanand ASP.NET 3.5 Basics 2 October 5th, 2008 11: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 04:13 PM
Wrox Sample Code - new virtual root setup? AdamB ASP.NET 1.1 0 June 24th, 2003 02:10 AM



All times are GMT -4. The time now is 05:19 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc