I'm having a problem building a solution in VS2003 (.NET 1.1) on
Windows XP. I get the error:
"Unable to open Web project 'projname'. The file path
'C:\app-1.6.0.600\solut ion\projname' does not correspond to the URL
'http://localhost/projname'. The two need to map to the same server
location."
What is frustrating me is that the error message is technically
correct; that particular URL is not pointing at that specific system
path. In IIS manager, the virtual directory "projname" is pointing at a
folder called :C:\app-1.7.0.602\solut ion\projname".
Just as an FYI, the way that we are doing our builds, is that for every
release, we create a new folder named with the version number and then
repoint all of the virtual directories to the new folders. It appears
that the solution doesn't realize that the virtual directory points at
a new folder - but there doesn't seem to be any file in which the old
folder name is stored.
This process has been working for the last 1 1/2 years and the only
change to the server that I am aware of is that we've installed .NET
2.0 on the machine in order to run the new SQL Server 2005 Manager.
Any help in figuring out what is going on would be appreciated.
Thanks,
Kevin Koehne 3 3600
Your project file is expecting the Web application to be a virtual root
( http://localhost/projname) but is not finding the virtual directory.
Since, In IIS manager, the virtual directory "projname" is pointing at a
folder called "C:\app-1.7.0.602\solut ion\projname" and you say that
VS is going to 'C:\app-1.6.0.600\solut ion\projname', you can back up
C:\app-1.6.0.600\solut ion\projname, delete the project files, and open
the project solution at C:\app-1.7.0.602\solut ion\projname.
You may need to edit the "C:\app-1.7.0.602\solut ion\projname" project's
webinfo file with Notepad to reflect the correct virtual directory.
It should read :
<VisualStudioUN CWeb>
<Web URLPath = "http://localhost/projname.csproj " />
</VisualStudioUNC Web>
If you are using vb.net, of course, the projectname will have vb in it, instead of cs.
Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
<ke**********@g mail.com> wrote in message
news:11******** **************@ v46g2000cwv.goo glegroups.com.. . I'm having a problem building a solution in VS2003 (.NET 1.1) on Windows XP. I get the error: "Unable to open Web project 'projname'. The file path 'C:\app-1.6.0.600\solut ion\projname' does not correspond to the URL 'http://localhost/projname'. The two need to map to the same server location."
What is frustrating me is that the error message is technically correct; that particular URL is not pointing at that specific system path. In IIS manager, the virtual directory "projname" is pointing at a folder called "C:\app-1.7.0.602\solut ion\projname".
Just as an FYI, the way that we are doing our builds, is that for every release, we create a new folder named with the version number and then repoint all of the virtual directories to the new folders. It appears that the solution doesn't realize that the virtual directory points at a new folder - but there doesn't seem to be any file in which the old folder name is stored.
This process has been working for the last 1 1/2 years and the only change to the server that I am aware of is that we've installed .NET 2.0 on the machine in order to run the new SQL Server 2005 Manager.
Any help in figuring out what is going on would be appreciated.
Thanks, Kevin Koehne
Thanks Juan,
The unusual bit is that I am not trying to build the old solution in
the ".600" folder. It is simply a copy of the last version. Here are
some other details that may clarify my situation.
* The vbproj file is in the folder "c:\app-1.7.0.602\solut ion\projname"
* "http://localhost/projname" is configured to point
"c:\app-1.7.0.602\solut ion\projname"
* The webinfo file in "c:\app-1.7.0.602\solut ion\projname" is pointing
to "http://localhost/projname".
I am manually building the solution from the command line. So, I am at
the command line, my current directory is
"c:\app-1.7.0.602\solut ion\projname". I execute "devenv /build debug
base.sln". That's when I get the error I described above. It's like
"devenv" thinks that I'm compiling in the old directory.
I was thinking that maybe VS was caching the mapping between the folder
and the URL, so I cleared all of the caches, but I still get the error.
Thanks again for your help.
Kevin
I figured out what the issue was. The short answer was that it was due
to the fact that the VSWebCache contains a file that maps the folder
path to a virtual directory - instead of relying on the IIS settings.
As I had said in the previous post, I had cleared out the cache. My
mistake was that by default, the cache is in c:\documents and
settings\<user name>\VSWebCach e. However, Visual Studio had been
configured so that it was pointing to a 'non-standard' folder for the
cache. Once I figured out where to change that setting
(Tools/Options/Projects/Web Settings) and changed the setting to the
'standard' value, the error went away.
FWIW, I could not find any detail as to what is stored in the file in
VSWebCache. I had to use a File Monitoring tool to watch what files VS
was opening - that's where I noticed the strange directory reference.
Thanks again for your help.
Kevin This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: David N |
last post by:
I got a solution that contains about 30 projects, three of which cannot be
open. When I open the project, I always receive the error message "Unable
to get the project file from the Web Server"
My machine is running Windows 2003. My colleagues are using the same
hardware and software as I do, but I am the only one running into this
problem.
I searched the Internet and see that quite a lot of people having the same
problem in the...
|
by: vince |
last post by:
I installed the Portal Starter Kit (from www.asp.net) on
a win 2003 server running IIS 6.0 and SQL Server 8.0, and
it works fine using integrated authentication.
However, I'm unable to open the portal project remotely
from my development pc... when in vs.net I click
File/Open/Project from Web, and I'm prompted to enter the
URL of the server containing the project. After
entering "http://myserver" it shows a listing of web
projects, but...
|
by: soni29 |
last post by:
hi,
i'm running windows 2000 and Internet Information Services 5.0, that's
the version that the help file for iis shows, i'm using Visual Studio
..Net 2002 (version 7) but whenever i try to create an asp.net project
i get an error. here is what i do:
Click Create Project
For Location type:
http://localhost/5040/WebApplication1
5040 is an alias, it works, if i put .aspx files there i can run them.
|
by: Serdar Kalaycý |
last post by:
Hi everybody,
My problem seems a bit clichè but I could not work around.
Well I read lots of MSDN papers and discussions, but my problem is a bit
different from them. When I tried to run the project in debug mode (by
hitting F5) it gives an error message
"Error while trying to run project: Unable to start debugging on the web
server.
|
by: Rob |
last post by:
I asked this question before but having had no response i'll try to
simplify the description and hope someone can help this time.
Basically my problem is that i'm getting the error "Unable to open web
project...the file path 'blah' does not correspond to the url
'blahblah'. Fair enough because the file path 'blah' is incorrect.
The question is where does it get this file path from ?
Just to add some background, i have copied the...
| |
by: Winshent |
last post by:
I have recently upgraded my desktop from windows 2000 to XP Pro. I
backed up my project by simply copying accross the files in the
project.
I have changed the default virtual directory from InetPub to another
and i have enabled file sharing and security settings for Internet
Guest Account, VS Developers and ASPNET Account.
I have copied my project files (all within the project folder) under
the default directory and converted this...
|
by: alan_coffman2004 |
last post by:
Opening an ASP.NET VS2002 project in VS2003, am getting this error:
"Unable to open Web project 'MyProject'. The file
path 'c:\inetpub\wwwroot\MyProject' does not correspond to
the URL 'http://Localhost:/MyProject'. The two need to map
to the same server location. HTTP Error 404: Not Found."
I have tried fixing this using both of these KB articles and usenet
advises, still problem not solved:
|
by: Jed |
last post by:
I am trying to open web project in VS 2003 using the File Share method.
VS is running on XP Pro (Host) and I am accessing the root web of an XP Pro
install on Virtual PC (Server) running on the same machine.
I have the loopback adapter running on the Host. The Host is sharing it's
Internet connectivity with the loopback adapter and the Server is using the
loopback it for Internet connectivity. All the networking stuff is working
fine.
|
by: benoitc |
last post by:
I've been having a problem debugging an ASP.NET 1.1 application on an
existing Windows XP/Visual Studio 2003 workstation that I've inherited
from somebody else. The application builds fine, but when I try to
debug, it gives me the message: Error When Trying to Run Project:
Unable to Start Debugging on the Web Server. Debugging failed because
integrated Windows authentication is not enabled.
Now, the obvious solution for this of course...
|
by: Sagar |
last post by:
Hi Iam unable to open my ASP.Net web project HRMS.vbproj suddenly in
VS.Net 2003
I am getthing this error.
Unable to open Web project '/'. The file path 'D:\company\ASP\Web'
does not correspond to the URL 'http://Localhost:'. The two need to
map to the same server location. HTTP Error 500: Internal Server Error
The webinfo file reads
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |