在IIS7的web.config中设置集成模式

时间:2009-01-22 18:57:43

标签: iis-7 web-config

在IIS7中,您现在拥有集成模式和经典模式。 是否可以使用web.config强制站点以集成模式运行,并且无法访问IIS7。

我问的原因是我最近与Mosso签约并需要以集成模式运行我的网站,而不是经典。

我知道我可以打电话给他们,也许让他们改变它......

2 个答案:

答案 0 :(得分:6)

这是您无法通过应用web.config更改的设置。

管道模式是应用程序池的属性,并配置为:

  

C:\Windows\System32\inetsrv\config\applicationHost.config

下:

  

配置 - > system.applicationHost-> applicationPools

答案 1 :(得分:1)

您还需要注意web.config中有新节点用于集成模式。如果使用http标头,则需要将它们从system.web移动到system.webserver。这里有一些很好的文章可以讨论:http://www.telerik.com/help/aspnet-ajax/registering_the_httphandlers_on_windows_vista_iis_7_integrated_mode.html和这里:http://msdn.microsoft.com/en-us/library/46c5ddfy.aspx