title: Setting up virtual directory when using IIS for ASP.NET MVC debugging
body: <p>I am trying to use IIS for debugging ASP.NET MVC in Visual Studio. The problem is that if I choose "Use Local IIS Web server" in Visual Studio, I have to choose a virtual directory, something like <a href="http://localhost/myapp/" rel="noreferrer">http://localhost/myapp/</a></p>
  
  <p>This is a problem because the ASP.NET MVC application is assumed to run from the root directory and the MVC would parse "myapp" as a controller, and when I run the app from Visual Studio/IIS, subsequent requests will be directed to the root anyway.</p>
  
  <p>How to solve this problem? Is there a way to use the IIS website root instead of a virtual directory for Visual Studio debugging?</p>