Can't open my VS2003 project: The project you are trying to open is a Web project. You need to open it by specifying its URL path.

Last post 11-23-2009 10:08 AM by kishorboddu. 3 replies.

Sort Posts:

  • Can't open my VS2003 project: The project you are trying to open is a Web project. You need to open it by specifying its URL path.

    03-04-2007, 11:54 AM
    • Participant
      1,041 point Participant
    • brgdotnet
    • Member since 03-10-2004, 11:59 AM
    • Posts 619

    Hello. I am using visual studio 2003. I am trying to open a visual studio 2003 project that was written a few years ago using visual studio 2003. Currently the project resides in the virtual directory named Inetpub\wwwroot.

     My problem is that I am not able to open the project. When I do try and open the project, I get the following error message:

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

     I don't know what is going on here? Someone please help me out. Note that I have tried two different ways to open the project without any success:

     1.) Opening VS 2003. In the IDE I select "File Open Project". I then select the visual studio project file for the project named "CalculateMtg.csproj "

     2.) In file explorer I double click on the file "CalculateMtg.csproj "

    I would really appreciate some help.

     

  • Re: Can't open my VS2003 project: The project you are trying to open is a Web project. You need to open it by specifying its URL path.

    03-05-2007, 8:44 AM
    • Contributor
      2,081 point Contributor
    • Rossoneri
    • Member since 11-09-2006, 8:57 PM
    • O-H I-O
    • Posts 435
    Try this solution

    http://datacogs.com/datablogs/archive/2005/01/28/209.aspx


    To fix this error all you need to do is add a webinfo file.  If your using VSS for source control, it's probably a good idea to add the webinfo file to SourceSafe as well as this is not done for you automatically.

    If you have a project file c:\Inetpub\wwwroot\Folder\fred.csproj then you need a corresponding webinfo file fred.csproj.webinfo.  The contents of the webinfo file looks like this:

    <VisualStudioUNCWeb>

        <Web URLPath = "http://localhost/Folder/fred.csproj" />

    </VisualStudioUNCWeb>

    When you go to add this web project to your solution file you actually don't specify “Add Existing Project From Web”, but simply “Add Existing Project”, then browse to c:\Inetpub\wwwroot\Folder\fred.csproj

     
  • Re: Can't open my VS2003 project: The project you are trying to open is a Web project. You need to open it by specifying its URL path.

    05-25-2009, 1:28 AM
    Answer

     Hello All,

     

    This happens , if WebInfo file is missing 

    Or even in some case , if The URL of the virtual directory does not match with the URL of the Application.

     

    Thanks & Regards,
    Akshaya


    Please don't forget to click "Mark as Answer" on the post(s) if it helped you
  • Re: Can't open my VS2003 project: The project you are trying to open is a Web project. You need to open it by specifying its URL path.

    11-23-2009, 10:08 AM
    • Member
      2 point Member
    • kishorboddu
    • Member since 07-07-2009, 9:42 AM
    • Posts 1

    Thanks Akshaya

    This is a very simple and elegant solution..works well..Laughing


    Kishor


Page 1 of 1 (4 items)