【发布时间】: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