Creating a virtual directory is only supported on the local IIS server

14,826

Solution 1

The virtual directory of the project is not set properly which is why its not loading, edit the virtual directory of the project by right clicking the project > edit project then find this line of code:

<iisurl>http://localhost</iisurl>

change or add the name of the web project after local host:

<iisurl>http://localhost/webname</iisurl>

Another solution is to make sure asp.net is registered to the IIS go into visual studio tools> visual studio command prompt and typer aspnet_regiis -r

More info on registering asp.net here: http://msdn.microsoft.com/en-us/library/k6h9cz8h(v=vs.80).aspx

Hope this helps.

Solution 2

This is probably because you have mapped project from TFS with a different version of visual studio.

Solution: 1. remove mappings from the local folders 2. Create new mapping and retrieve files to a different location 3. Open the solution from this new location

Share:
14,826
bernie2436
Author by

bernie2436

Updated on June 18, 2022

Comments

  • bernie2436
    bernie2436 almost 2 years

    I am trying to get a visual studio solution (written by someone else) working on my machine. When I try to open the solution, I get two error messages, shown in the picture below. I don't know very much about IIS so I am at a loss to debug these. What should I do? Or where should i start reading?

    enter image description here

  • SteveCav
    SteveCav almost 11 years
    Open the .csproj in notepad or another text exitor.
  • BornToCode
    BornToCode about 9 years
    @bernie2436 - Right click on project - unload project, then it appears as unavailable - right click again and choose 'Edit <projectname>.csproj'