Change the Web Server path for an existing Web Project?

J

John Kotuby

In VS2003 (VB) I am trying to open a solution that contains a couple web
projects. It was zipped from another developer's machine and sent to me. I
unzipped it a folder on my C drive and placed a WindowsXP Web Share on the
folder. I can access the webshare by typing in http://localhost/dmedibiz.
However, when I open the solution and it tries to open the Web Project
parts, it says "Contacting Web Server to Open Web Project, followed by an
error message.

The Web Server reported the following error when attempting to create or
open the Web project located at the URL: ' http://dmedibiz '. 'The server
name or address could not be resolved'.

So... I am trying to find out how to change the web server reference to
http://localhost/dmedibiz.
I found a file called DotCom.vbproj.webinfo, which contained the lines:

<VisualStudioUNCWeb>
<Web URLPath = "http://dmedibiz/DotCom.vbproj" />
</VisualStudioUNCWeb>

So I changed that to:
<VisualStudioUNCWeb>
<Web URLPath = "http://localhost/dmedibiz/DotCom.vbproj" />
</VisualStudioUNCWeb>

That path can be resolved in IE 7, but the project still tries to open the
project in the previous web path. The solution contains 12 projects. I need
to open the web project to access some visual elements I wish to use in a
different project. Any suggestions?
Thanks in advance...
 
J

John Kotuby

I removed the Web projects from the Solution, then did Add Existing Project
from the Web and selected the existing Web projects. Now I have to redo the
References to the other projects in the solution. That's all I could come up
with as a work around. So far.. so good.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top