什么是&QUOT正确使用; runAllManagedModulesForAllRequests"在ASP.NET MVC2 / 3? [英] What is the correct usage of "runAllManagedModulesForAllRequests" in ASP.NET MVC2/3?
问题描述
我读过的各个岗位和关于使用 runAllManagedModulesForAllRequests
在模块问题
部分< system.WebServer方式>
,我很担心,我使用这个设置不正确
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.
我所有的ASP.NET MVC应用程序是使用.NET Framework 4.0和MVC2写的,再加上我们有一个使用MVC3应用程序的测试版。
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.
这些应用程序部署到运行Windows 2008R2 / IIS7.5服务器。该站点都配置为在综合管线运行/ .NET 4.0的应用程序池。
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.
如果我设置 runAllManagedModulesForAllRequests =FALSE
然后我得到一个HTTP错误403.14 - 从IIS禁止错误。如果我设置为真,那么一切都很好。
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:
不要使用runAllManagedModulesForAllRequests =真工作
是不是真的说不好,我应该遵循这一建议?
Is it really that bad, should I follow this advice?
推荐答案
如何坏的是要看网站流量,如果你是在一个高流量的网站工作,我会说,不使用它,并删除不需要的模块
How bad it is depends on the site traffic, if you are working on a high traffic website I'd say don't use it, and remove unneeded modules.
这篇关于什么是&QUOT正确使用; runAllManagedModulesForAllRequests&QUOT;在ASP.NET MVC2 / 3?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!