代码之家  ›  专栏  ›  技术社区  ›  Colin Newell

IIS7似乎不喜欢<soapExtensionTypes>,还有什么选择?

  •  3
  • Colin Newell  · 技术社区  · 15 年前

    我基本上是以同样的方式将错误记录到ELMAH SO answer suggests

    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模块需要迁移到系统.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>
    
    1 回复  |  直到 9 年前
        1
  •  1
  •   Justin Niessner    15 年前

    根据您在这里发布的内容,一切都应该正常工作(实际上我在过去使用了类似的策略)。

    我猜你有其他经纪人在system.web/httpModules模块剖面图web.config文件.

    如果你能把剩下的邮件寄出去会有帮助的web.config文件(减去任何敏感信息,如连接字符串等),以便我们可以在任何其他地方看到问题所在。

    更新

    我认为您可能还需要将Elmah模块配置移出httpModules部分。它们迁移到以下位置:

    <webServices>
        <soapExtensionTypes>
            <add type="ModuleName.SoapExceptionHandler, ModuleName" 
                 priority="1"
                 group="0" />
        </soapExtensionTypes>
        <modules>
            <add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" />
        </modules>
    </webServices>
    
    推荐文章