The project you are trying to open is a web project you need to open it by specifying its URL path

The famous error “The project you are trying to open is a web project you need to open it by specifying its URL path” in visual studio .net.  Basically you have either lost your .webinfo file or your .webinfo file is pointing to the wrong project or wrong place.

Took me a while to figure it out but hope that helps someone.  Hopefully the source code provider isnt so buggy in Visual Studio 2005.

26 thoughts on “The project you are trying to open is a web project you need to open it by specifying its URL path

  1. Hi there,
    I have few projects developed in VS 2003 and put in the VSS. Lately i
    have installed VS 2005 on the same machine. Usually i open web projectes like this. I create a working folder on the C:/ and download the project files from the VSS and try to open by double clicking the .vbproj file. Then it asks me to open it in the under wwwroot folder and then i say ok to it and it eventually opens the project in VS and also the webproject gets created in IIS on its own.

    Now, I want to downlaod and open a webapp from VSS that was developed in VS 2003. So i did the same way as i would do every time as i explained above but somehow when i double click the .vbproj it is opening a wizard of VS 2005 to convert the project to VS 2005.

    So i just right clicked on the .vbproj and forcebly try opening it in VS 2003. But it is throwing an exception

    “The project you are trying to open is a web project. You need to open
    it by specifying its URL path”

    I also tried creating a webinfo file in the current folder to my working folder (my working folder is not a wwwroot folder. I would create my working folder some where on C: and double click the .vbproj file and it creates the project in wwwroot for me)



    Not sure if this webinfo file has some errors but as i don’t know the underhood process i just created one like this and put it in my current working folder. But it doesn’t solve my problem.

    Has any one came across with this kind of scenario before?

    Please help.
    -L

  2. Thanks. Saved me a ton of time too. And if “you’re a ****ing crack” is a good thing (which doesn’t sound so good) then I agree!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.