Note that there are some explanatory texts on larger screens.

plurals
  1. POASP.NET MVC and IIS 5
    text
    copied!<p>What is the best way to get hosting of an ASP.NET MVC application to work on IIS 5 (6 or 7). When I tried to publish my ASP.NET MVC application, all I seemed to get is 404 errors. I've done a bit of googleing and have found a couple of solutions, but neither seem super elegant, and I worry if they will be unusable once I come to use a shared hosting environment for the application.</p> <p><a href="http://blogs.microsoft.co.il/blogs/dorony/archive/2007/12/15/using-asp-net-mvc-on-iis-5.aspx" rel="nofollow noreferrer">Solution 1</a></p> <blockquote> <ol> <li>Right-click your application virtual directory on inetmgr.exe.</li> <li>Properties->Virtual Directory Tab-> Configuration.</li> <li>Add a new mapping extension. The extension should be .*, which will be mapped to the Executable C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll, or the appropriate location on your computer (you can simply copy this from the mapping for .aspx files). On the mapping uncheck "check that file exists".</li> <li>3 X OK and you're good to go.</li> <li>If you want, you can apply this setting to all your web sites. In step1, click on the "Default Web Site" node instead of your own virtual directory, and in step 2 go to the "Home Directory" tab. The rest is the same.</li> </ol> </blockquote> <p>It seems a tad hacky to route everything through ASP.NET.</p> <p><a href="http://blog.pagedesigners.co.nz/?p=29" rel="nofollow noreferrer">Solutions 2</a></p> <p>Edit the MVC routing to contain .mvc in the URL and then follow the steps in solution 1 based around this extension. <em>Edit: The original image link was lost, but here it is from Google's Cache:</em></p> <p><img src="https://i.stack.imgur.com/TDp4F.png" alt="alt text"></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