Deploying an MVC application on a virtual directory on an IIS 6 server can be done with the below steps.
1. Set up a virtual directory and copy the website files over to the server and configure it as you would a webforms or asp classic application.
2. In IIS, Right click on Properties for the virtual directory of the MVC application.
3. Click the Virtual Directory tab and push the Configuration button.
4. Under “Wildcard application maps (order of implementation)”,
insert a mapping to the aspnet_isapi.dll. Your aspnet_isapi.dll file will most likely be in the directory: c:\windows\microsoft.net\framework\v2.0.50727
Ensure that “Verify that file exists” is unchecked.
That should be all you need to do.
You may notice that CSS doesn’t work on your application. If CSS is not working you may need to change your CSS file references to have a tilde character as below.
<link rel=”stylesheet” href=”~/Content/screen.css” type=”text/css” media=”screen” />
Many thanks to Phil Haack’s blog on this topic which provided me with some of the information used.