By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,919 Members | 1,600 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,919 IT Pros & Developers. It's quick & easy.

cannot add existing web project to solution

P: n/a
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
Jul 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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...

Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.