Today reload Win7, deploy MVC3, encounter various problems, consult n information, after how many twists and turns, finally finally fix. Lest the time be unfamiliar, it is recorded here for the need of the future.
1. The application pool is in Integrated mode (recommended) and the. NET Framework version is:. NET Framework4.0.30319.
2. Make sure that the ASP. NET MVC3 is installed, and then check the site's handler mappings to see if the following mappings exist:
extensionlessurlhandler-integrated-4.0
Extensionlessurlhandler-isapi-4.0_32bit
Extensionlessurlhandler-isapi-4.0_64bit
If missing, enter in the run: C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe-i
3. Locate the following files on the machine where ASP. NET MVC is installed (32 system is C:\Program Files\Microsoft ASP. NET directory), copy them to the bin directory of the deployment machine and it's OK! (Note: Host IIS installs ASP. ASP. NET 4.0 is also used by the Web site)
C:\Program Files\Microsoft Asp.net\asp.net Web Pages\v1.0\assemblies
System.Web.Helpers.dll
System.Web.Razor.dll
System.Web.WebPages.dll
System.Web.WebPages.Razor.dll
System.Web.WebPages.Deployment.dll
Microsoft.Web.Infrastructure.dll
C:\Program Files\Microsoft Asp.net\asp.net MVC 3\assemblies
System.Web.Mvc.dll