I've read various posts and questions about the use of runAllManagedModulesForAllRequests
in the modules
section of <system.WebServer>
and I'm concerned that I'm using this setting incorrectly.
All my ASP.NET MVC applications are written using .NET Framework 4.0 and MVC2, plus we have a beta of an application that uses MVC3.
These apps are deployed to servers running Windows 2008R2/IIS7.5. The sites are configured to run in Integrated Pipeline/.NET 4.0 application pools.
If I set runAllManagedModulesForAllRequests="false"
then I get a HTTP Error 403.14 - Forbidden error from IIS. If I set this to true then all is well.
However this article suggests this is a bad thing to do and a fix:
Don't use runAllManagedModulesForAllRequests="true" when getting your MVC routing to work
Is it really that bad, should I follow this advice?
它的糟糕程度取决于网站流量,如果您在高流量网站上工作,我会说不要使用它,并删除不需要的模块。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.