Deploy ASP.NET MVC Site on IIS6 – Windows Server 2003

I built a new ASP.NET MVC 4 (.NET 4) web application, but client wanted it to be hosted on their older Windows Server 2003 running IIS 6. While hosting I got 403 error because IIS6 comes with .Net framework 2.0.

I have figured out what we need to do inorder to host the mvc site on IIS6. We do need all the appropriate MVC assemblies in the application bin folder, otherwise we will have to install mvc on server. But the server must have .net Framework 4.0.

Steps :

1. Install the .NET 4 Framework.

2. Make sure ASP.NET v4.0.30319 is ?Allowed? under Web Service Extensions in IIS ? it is ?Prohibited? by default.

3. IIS Website Configuration: Right click on your new website and select ?Properties?:

a. Under the ?Home Directory? tab, make sure that ?Execute permissions? is set to ?Scripts only? .
b. Under the ?ASP.NET? tab, make sure that the ASP.NET version is set to ?4.0.30319?.
c. Click on the ?Configuration? button in the ?Home Directory? tab and make sure that all the Application extensions are mapped to .NET 4 versions of the dlls.
d. Add a ?Wildcard application mapping? ? click on ?Insert? and enter ?C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll? as the ?Executable?. Leave ?Verify that file exists? unchecked.