MVC5 Web site Deployment to IIS7

Source: Internet
Author: User

There is nothing wrong with configuring under Server 2008r2+iis7.5, which is recorded under SERVER2008+IIS7 configuration

For reference: http://www.cnblogs.com/fcu3dx/p/3773161.html

Modify the Web. config, and copy the code here.

Replace the corresponding settings under Web. config

<system.webServer> <validation validateintegratedmodeconfiguration="false"/> <modules runallmanagedmodulesforallrequests="true"/> "Extensionlessurlhandler-isapi-4.0_32bit"/> <remove name="Extensionlessurlhandler-isapi-4.0_64bit"/> <remove name="extensionlessurlhandler-integrated-4.0"/> <add name="Extensionlessurlhandler-isapi-4.0_32bit"Path="*."verb="get,head,post,debug,put,delete,patch,options"modules="Isapimodule"Scriptprocessor="%windir%\microsoft.net\framework\v4.0.30319\aspnet_isapi.dll"precondition="Classicmode,runtimeversionv4.0,bitness32"responsebufferlimit="0"/> <add name="Extensionlessurlhandler-isapi-4.0_64bit"Path="*."verb="get,head,post,debug,put,delete,patch,options"modules="Isapimodule"Scriptprocessor="%windir%\microsoft.net\framework64\v4.0.30319\aspnet_isapi.dll"precondition="Classicmode,runtimeversionv4.0,bitness64"responsebufferlimit="0"/> <add name="extensionlessurlhandler-integrated-4.0"Path="*."verb="get,head,post,debug,put,delete,patch,options"Type="System.Web.Handlers.TransferRequestHandler"precondition="integratedmode,runtimeversionv4.0"/> 


Based on the above, the problem is still, review the "ISAPI and CGI Restrictions" for IIS and discover that there are no ASP. NET V4 items, because it is installed first, after installing IIS, so you need to re-register under. NET 4.0,win+r input:C :/windows/microsoft.net/framework/v4.0.30319/aspnet_regiis.exe-i

A duly resolved

MVC5 Web site Deployment to IIS7

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.