【问题标题】:Unrecognized configuration section system.web/system.webServer无法识别的配置节 system.web/system.webServer
【发布时间】:2011-06-13 20:53:56
【问题描述】:

我正在关注creating a synchronous http handler 的演练,并在 IIS 7.5 中选择通过集成模式进行注册。

在 IIS 7.5 上使用 Visual Studio 2010 中的网站项目,对于 .NET 4.0,web.config 中以下部分的错误消息:

<configuration>
    <system.web>
        <compilation debug="false" targetFramework="4.0">
        </compilation>
        <system.webServer>
            <validation validateIntegratedModeConfiguration="false" />
            <handlers>
                <add verb="*" path="*.sample" name="Logger" type="Logger"/>
            </handlers>
        </system.webServer>
        <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/>
    </system.web>
</configuration>

is:无法识别的配置节 system.web/system.webServer。它是一个无效的子元素。我应该如何修复它,为什么它无法识别?

【问题讨论】:

    标签: .net iis-7 httphandler


    【解决方案1】:

    System.WebServer 是 Configuration 的子节点,而不是 System.Web。因此,将 System.WebServer 部分移到 System.Web 部分之外。

    【讨论】:

      猜你喜欢
      • 2011-12-28
      • 2012-10-09
      • 2010-09-26
      • 2011-07-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-10-28
      • 1970-01-01
      相关资源
      最近更新 更多