When we publish MVC application to IIS sometimes we got this
error.
Following are the possible causes/ fixes for this
·
Make sure the Application pool targets correct
version of .NET framework (i.e .NET Framework v4.0.30319 for .NET 4 and 4.5)
·
Make sure the Pipeline mode of IIS Application
pool is "Integrated"
·
Check UrlRoutingModule-4.0 is
added in the modules of that website, if not add following into Web.config
module section.
<add name="UrlRoutingModule-4.0"type="System.Web.Routing.UrlRoutingModule"
preCondition="" />
<remove name="FormsAuthenticationModule" />
·
Make sure you have following element added
in system.webServer section of website's web.config
<system.webServer>
<modules
runAllManagedModulesForAllRequests="true"></modules>
</system.webServer>
No comments:
Post a Comment