Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 620
bernie2436 Avatar asked Feb 18 '13 16:02

bernie2436


1 Answers

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.

like image 197
user1955688 Avatar answered Sep 21 '22 02:09

user1955688