Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics 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 March 23rd, 2007, 06:45 PM
Friend of Wrox
 
Join Date: Oct 2005
Posts: 124
Thanks: 0
Thanked 1 Time in 1 Post
Default Error: File path and URL http map differently

I have copied an sample solution folder to my C:\Inetpub\wwwroot\VBNET\SampleApp. Then when I tried to open an existing project from C:\Inetpub\wwwroot\VBNET\SampleApp, an error msg , the file path "C:\Inetpub\wwwroot\VBNET\SampleApp" and the URL http://localhost/SampleApp map differently" popped up.

Question:
How can I change the URL of the SampleApp solution to http://localhost/VBNET/SampleApp ? Or, I guess if I save the Sample solution to C:\Inetpub\wwwroot\SampleApp, I should be able to open the SampleApp solution. Am I right?

TIA,
Jeffrey
__________________
C. Jeffrey Wang
 
Old March 24th, 2007, 02:38 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

if you open the solution file in notepad you can edit those settings. Alternatively, open iis mmc and create a virtual directory under your app root that is named SampleApp and map the directory to C:\Inetpub\wwwroot\VBNET\SampleApp that should correct the problem

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========
 
Old March 25th, 2007, 05:31 PM
Friend of Wrox
 
Join Date: Oct 2005
Posts: 124
Thanks: 0
Thanked 1 Time in 1 Post
Default

Thanks.

I can not find a .sln file from the sample folder to edit the settings. Can see only .aspx, aspx.vb, etc. Is it because the VS.net version is different?

I did open those aspx, asp.vb files; but still can not see anything for http://localhost... to edit. Specifically, which file I need to edit before I can open the sample solution/project?

TIA,
Jeffrey
 
Old March 26th, 2007, 06:08 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

The app that is generating the error, did you copy it from one server via Visual Studio or did you phsyically copy it to that location?

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========
 
Old March 27th, 2007, 08:03 PM
Friend of Wrox
 
Join Date: Oct 2005
Posts: 124
Thanks: 0
Thanked 1 Time in 1 Post
Default

I think I need to read carefully how the VS creates the .sln, .aspx, etc. files, and how the windows physical directory and IIS directory are created. I thought I have corrected all the wrong names, including the http:/ web directory, but still could not open the existing project.

I will started all over again creating the solution/project with the correct name.

Thanks,
Jeffrey





Similar Threads
Thread Thread Starter Forum Replies Last Post
DTS ActiveX - Download file from an url(http://..) maruthiraja SQL Server DTS 0 April 9th, 2008 12:04 PM
How to change file path to http url cJeffreywang BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 0 July 25th, 2007 12:18 AM
Map Path??? thetwai C# 3 April 5th, 2007 07:26 AM
Redirect URL to File path han_nomad C# 12 February 2nd, 2007 06:26 AM
file path does not correspond to url rnelson330 .NET Framework 1.x 1 May 27th, 2006 09:42 AM





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