什么是之间和LT的差异;&System.Web程序GT;和< system.webServer&GT ;? [英] What's the difference between <system.web> and <system.webServer>?

查看:217
本文介绍了什么是之间和LT的差异;&System.Web程序GT;和< system.webServer&GT ;?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我每次都要添加处理程序或模块ASP.NET瓦特/ IIS7,指令总是告诉我把它变成两个地方,对System.Web和system.webserver。

Every time I have to add a handler or module for ASP.NET w/ IIS7, the instructions always tell me to put it into two places, the system.web and system.webserver.

<system.web>
    <httpHandlers>
    </httpHandlers>
    <httpModules>
    </httpModules>
</system.web>

和这样的:

<system.webServer>
    <modules>
    </modules>
    <handlers>
    </handlers>
</system.webServer>

有何两者之间的区别?

补充:如果我不把它添加到我的System.Web,我的VS 2008的调试器也无法正常工作。

What's the difference between the two?
Added: If I don't add it to my system.web, my VS 2008 debugger also doesn't work correctly.

推荐答案

system.web节是用于配置IIS 6.0,而system.webserver版本用于配置IIS 7.0。 IIS 7.0包括一个新的ASP.NET管道和一些配置的差异,因此,额外的配置部分。

The system.web section is for configuring IIS 6.0, while the system.webserver version is used to configure IIS 7.0. IIS 7.0 includes a new ASP.NET pipeline and some configuration differences, hence the extra config sections.

不过...

如果你正在运行在集成模式下IIS 7.0只,你不应该需要将处理程序添加到两个部分。增加它的System.Web以及是IIS 7.0的回退在经典模式下运行,除非我错了。我没有做广泛的测试这一点。

If you're running IIS 7.0 in integrated mode only, you shouldn't need to add the handlers to both sections. Adding it to system.web as well is a fallback for IIS 7.0 operating in classic mode, unless I'm mistaken. I've not done extensive testing on this.

请参阅http://msdn.microsoft.com/en-us/library/bb763179.aspx了解更多信息。

这篇关于什么是之间和LT的差异;&System.Web程序GT;和&lt; system.webServer&GT ;?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆