【发布时间】:2010-08-31 14:55:25
【问题描述】:
我基本上以与SO answer suggests 相同的方式将错误记录到 ELMAH,但最初我从 IIS 收到错误,提示未使用该设置,然后当我清除错误时(通过打开旧配置验证) 我的钩子似乎没有被调用。
HTTP Error 500.22 - Internal Server Error
An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode.
Most likely causes:
* This application defines configuration in the system.web/httpModules section.
我知道需要将诸如 system.web/httpModules 之类的设置迁移到 system.webServer,但我似乎不知道如何处理soapExtensionTypes 配置设置。
<webServices>
<soapExtensionTypes>
<add type="ModuleName.SoapExceptionHandler, ModuleName" priority="1" group="0" />
</soapExtensionTypes>
</webServices>
我需要做什么才能让我的SoapExtension 加载到管道中?
或者我只是错了,它应该可以工作,但我搞砸了?
更新:在我现在的 httpModules 部分中,
<httpModules>
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" />
</httpModules>
【问题讨论】:
-
你能发布确切的配置给你那里的错误。我在 IIS7 Integrated 上使用示例中引用的代码没有任何错误?
-
您需要使用“集成”托管管道模式吗?即您可以在经典模式下使用应用程序池吗?
-
我宁愿使用集成管道。我将看看创建一个孤立的示例,以便为问题提供更好的示例,或者证明我已经完成了它并且在实际应用中做错了。
-
我正在寻找我在哪里使用它并发布示例。我目前无法访问我的开发系统。