Cannot get Solution's web project to find localhost site

Last post 04-29-2008 3:05 AM by Bimalvv. 2 replies.

Sort Posts:

  • Cannot get Solution's web project to find localhost site

    12-13-2007, 10:00 AM
    • Loading...
    • dba123
    • Joined on 12-13-2003, 12:04 AM
    • Posts 1,067

    In my solution (looks like theirs is .NET 2.0), I open it and the web project is greyed out.  I have setup the website before and it's setup the same so I'm not sure why it's still greyed out becuase the solution isn't able to find it once I opened my solution.

    Here's the portion in the .sln where that website is defined

     Microsoft Visual Studio Solution File, Format Version 9.00
    # Visual Studio 2005
    Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "http://localhost/", "http://localhost", "{EC688383-7385-4A64-B6B2-F70A996E76FB}"
     ProjectSection(WebsiteProperties) = preProject
      SccProjectName = "SAK"
      SccAuxPath = "SAK"
      SccLocalPath = "SAK"
      SccProvider = "SAK"
      ProjectReferences = "{4F1AF7E0-CD7F-4DCB-B790-0F4B641DECAC}|KHE.dll;{224D813B-F128-49A3-B5AE-8AF2B888A965}|KHE.WebControls.dll;"
      Debug.AspNetCompiler.VirtualPath = "/localhost"
      Debug.AspNetCompiler.PhysicalPath = "Web\"
      Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\localhost\"
      Debug.AspNetCompiler.Updateable = "true"
      Debug.AspNetCompiler.ForceOverwrite = "true"
      Debug.AspNetCompiler.FixedNames = "false"
      Debug.AspNetCompiler.Debug = "True"
      Release.AspNetCompiler.VirtualPath = "/localhost"
      Release.AspNetCompiler.PhysicalPath = "Web\"
      Release.AspNetCompiler.TargetPath = "PrecompiledWeb\localhost\"
      Release.AspNetCompiler.Updateable = "true"
      Release.AspNetCompiler.ForceOverwrite = "true"
      Release.AspNetCompiler.FixedNames = "false"
      Release.AspNetCompiler.Debug = "False"
      SlnRelativePath = "Web\"
     EndProjectSection
    EndProject

    My IIS is mapped to the directory Web already.  Not sure what else to do.  I tried removing the website project in my solution but I don't see a way to readd it.  There is just an "Add Existing Item" when I right click the solution and no option to add an IIS website so that I can finally get this project active and working in my solution so that I can start working with the code under Web\.

    This was all fine before they ported our old TFS server to a new one.  Before this, a week ago all I had to do was setup the website in IIS and the web project loaded fine in the solution but now, even with the same setup, it's not.

    If I try to reload the solution in Solution Explorer by right-clicking in the whitespace (again IIS IS setup right for this website), the only thing I have to go on is this error message:

    "The application for Project "http://localhost" is not installed
    Make sure the application for project type () is installed

    C# Web Developer

    When is Microsoft going to get rid of VB.NET!
  • Re: Cannot get Solution's web project to find localhost site

    12-18-2007, 7:38 AM
    Answer
    • Loading...
    • VikasVaidya
    • Joined on 12-18-2007, 12:33 PM
    • Posts 3

    Hello dear,

    If u want to add a web site project then go through

    File --> Add --> Existing Web Site.

     

    --V V--
    Vikas vaidya

  • Re: Cannot get Solution's web project to find localhost site

    04-29-2008, 3:05 AM
    Answer
    • Loading...
    • Bimalvv
    • Joined on 11-04-2006, 7:50 AM
    • India
    • Posts 41

    Add a new blank solution and try to add all projects/websites by using Add existing Project/Website.

Page 1 of 1 (3 items)