Note that there are some explanatory texts on larger screens.

plurals
  1. POCan't run ASP.NET MVC 2 web app on IIS 7.5
    text
    copied!<p>I'm trying to run an ASP.NET MVC 2 web application under IIS on Windows 7, but I get a 403.14 error. Here are the steps to reproduce:</p> <ol> <li>Open Visual Studio 2010</li> <li>Create a new ASP.NET MVC 2 project called MvcApplication1</li> <li>Shift+F5 to run the app. You should see <code>http://localhost:{random_port}/</code> and the page will render correctly.</li> <li>Click on MvcApplication1, and select "Properties". Go to the "Web" section. </li> <li>Select "Use Local IIS Web server" and create a virtual directory. </li> <li>Save.</li> <li>Shift+F5 to run the app. You should see <code>http://localhost/MvcApplication1/</code> and an IIS error <code>HTTP Error 403.14 - Forbidden The Web server is configured to not list the contents of this directory.</code>.</li> </ol> <p>It's clear that for whatever reason, ASP.NET routing is not working correctly. </p> <p>Things I've already thought of and tried:</p> <ul> <li>Verified that all IIS features are enabled in "Turn Windows features on or off".</li> <li>Verified that the default website is configured to use .NET 4.0</li> <li>Reassigned ASP.NET v4 scripmaps via <code>aspnet_regiis -i</code> in the <code>v4.0.30319</code> directory.</li> </ul> <p>Here's the most amazing part - this is on a <em>just-built</em> machine. New copy of Windows 7 x64 Ultimate, clean install of Visual Studio 2010 Premium, no other websites and no other work performed. </p> <p>Anything else I can try? </p> <p><a href="http://i41.tinypic.com/11j176b.png">Setting Visual Studio to use local IIS web server http://i41.tinypic.com/11j176b.png</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload