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.

Print | posted on Wednesday, June 08, 2005 3:44 PM

Feedback

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

Left by Greg Spence at 11/2/2005 7:08 PM
Gravatar You rock! Thanks for posting this solution.

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

Left by Dav Evans at 12/1/2005 10:45 PM
Gravatar Paul, you are my hero - Thanks for posting this peice of gold. Saved me much frustration.

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

Left by aLexsticy at 12/19/2005 6:41 PM
Gravatar Well thanks... solves my problem. Although I still have a security problem.

:)

aL.

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

Left by Fernando at 1/24/2006 3:57 PM
Gravatar cool. saved me a big headache.

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

Left by Jain vaibhav at 2/11/2006 6:02 AM
Gravatar hi,
Thanks for providing the solution for above error..
Thanks a lot

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

Left by Jun Merencilla at 2/27/2006 12:18 PM
Gravatar Cool! Saves a lot of time troubleshooting the cause of our problem.

Many thanks
Jun

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

Left by Dev at 2/28/2006 4:30 PM
Gravatar 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:/<projectName> 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)


<VisualStudioUNCWeb>
<Web URLPath =

"C:\VisualStudio2003Projects\NewLapTopApplication\NewLapTopApplication.vbproj" />
</VisualStudioUNCWeb>

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


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

Left by Deepak at 3/17/2006 3:15 PM
Gravatar Thank You very much.

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

Left by Julian y Laura at 5/9/2006 6:38 PM
Gravatar Muchas gracias, joder.

You're a fucking crack !!!

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

Left by Peter Krickner at 5/10/2006 1:26 PM
Gravatar Such a small and easy solution to a really annoying problem.
Thanx a lot!

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

Left by Abrar at 7/18/2007 3:33 PM
Gravatar Dude,
You saved my lot of time...
Thank you and god bless you

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

Left by Abhishek Maitrey at 7/25/2007 1:20 PM
Gravatar It's fantastic. I got a such easy solution.
Thanks

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

Left by Giles Papworth at 8/6/2007 9:29 AM
Gravatar Unfortunatly nothing has fixed my problem. I have replaced the .webinfo file and still no luck.

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

Left by paul at 8/6/2007 12:17 PM
Gravatar are you sure you have the correct location !!

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

Left by Herman at 8/13/2007 6:25 AM
Gravatar Thank you very much! This has been an irritation for the past year!!

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

Left by Paul at 8/13/2007 11:43 AM
Gravatar good stuff

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

Left by Cannon at 8/17/2007 3:26 AM
Gravatar Oh my god you are so great!!!

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

Left by Me at 2/8/2008 12:41 PM
Gravatar Thanks!!!

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

Left by Nic at 2/21/2008 8:06 PM
Gravatar Wow, thank you mister!

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

Left by Nick at 3/27/2008 8:04 PM
Gravatar 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!

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

Left by Andy at 5/9/2008 12:53 PM
Gravatar Awesome...thanks a lot!!!!

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

Left by Thank at 10/30/2008 12:41 PM
Gravatar Thank you ! saved me lots of time and troubles.

Your comment:





 
Please add 8 and 1 and type the answer here:

Disclaimer: Paul Farrow is not responsble for any damage, direct or indirect,
caused by the use of the information on this site. Use at your own risk.

Design by Bartosz Brzezinski

Design by Phil Haack Based On A Design By Bartosz Brzezinski