cannot add existing web project to solution

J

Jon Paugh

Hi Friendly Newsgroup Readers,

I switched to another PC and pulled all my source code
for my solution to my new PC, after first dutifully
adding my web project directories as appropriately named
virtual directories in IIS. But after much fiddling I
still cannot open my web projects from VS .NET.

When I open my old solution, it refuses to include the
web projects (asp.net web projects) that were in the
solution originally on the other machine. For example, I
have MySolution.Web in a directory called MySolution.Web
which I have mapped in IIS as MySolution.Web.

I then try to create a brand new solution and add this
web project. When I try "add existing project" and select
the web project, I get an error "The project you are
trying to open is a web project. You need to open it by
specifying the URL."

Ok, fine... So I try "Add Existing Project from the Web"
and enter:
http://localhost/MySolution.Web

and....

I see nothing - no files. Just what looks like an empty
directory with the file folder showing as
http://localhost/MySolution.Web as I would expect. But no
files...

I try

http://localhost/MySolution.Web/MySolution.csproj

again, I see nothing and I get taken to my "MyDocuments"
directory. If I go select my web project file it
complains again about specifying the URL.

So what is the magic word here? Anyone seen this? It
wants a URL, but it won't take it. I have the project
file's directory in IIS, and named correctly. I can see
that by checkig the "sharing" for the directory (in
Windows XP).

Jon Paugh
 
J

Jon Paugh

OK, resolved this.

Added directory browsing to virtual dir in IIS and then
closed and reopened the solution. Apparently if opening a
project fails once in VS .NET solution, then it won't let
you try to open it again...
 

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