我正在尝试将ELMAH集成到一个Webforms应用程序中。由于某些原因,我无法更改,整个应用程序必须仅通过HTTPS访问。
应用程序正在运行,但我们无法远程访问ELMAH的日志文件。我遵循了这个说明,以允许远程访问,但没有成功。
以下是当前在生产web.config文件中相关的配置:
<configuration>
<configSections>
<sectionGroup name="elmah">
<section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler, Elmah" />
<section name="errorLog" requirePermission="false" type="Elmah.ErrorLogSectionHandler, Elmah" />
<section name="errorMail" requirePermission="false" type="Elmah.ErrorMailSectionHandler, Elmah" />
<section name="errorFilter" requirePermission="false" type="Elmah.ErrorFilterSectionHandler, Elmah" />
</sectionGroup>
</configSections>
<elmah>
<security allowRemoteAccess="yes" requirePermission="false" />
<errorLog type="Elmah.XmlFileErrorLog, Elmah" logPath="~/App_Data" />
</elmah>
<system.web>
<httpModules>
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah"/>
</httpModules>
<httpHandlers>
<add verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" />
</httpHandlers>
还有其他什么我可以做的吗?有人知道是否存在访问ELMAH日志文件的HTTPS限制吗?
请注意,我们目前正在使用IIS 6.0和.NET框架2.0。