500.19内部服务器错误 - RequestFilteringModule配置错误

时间:2010-01-06 15:43:14

标签: asp.net iis-7 web-config

我正在开发基于Telligent Community平台的网站。它附带了我需要设置和构建的网站的拉链。我已经设置了网站,并且一直在努力,除了默认的web.config有一件事打破网站,除非我评论它。以下部分中的行为<requestFiltering allowDoubleEscaping="true" />

<system.webServer>
  <validation validateIntegratedModeConfiguration="false" />
  <security>
    <requestFiltering allowDoubleEscaping="true" />
  </security>
  ... continues ...

如果我注释掉该行,我的网站就可以了。如果没有,我收到此错误:

Config Error
This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false".

我读到的一件事是转到位于applicationHost.config的{​​{1}}文件,并将windows\system32\inetsrv\config中的以下值更改为“允许”:

<sectionGroup name="system.webServer">

我已完成上述更改并完成了<section name="handlers" overrideModeDefault="Deny" /> <section name="modules" allowDefinition="MachineToApplication" overrideModeDefault="Deny" /> ,但我仍然遇到同样的错误。有没有人有任何想法允许我的配置中的这一行工作?

1 个答案:

答案 0 :(得分:3)

您确实要检查applicationHost.config(可能还有machine.config)并验证是否已设置:<section name="requestFiltering" overrideModeDefault="Allow" />