私はELMAHをWebフォームアプリケーションに統合しようとしています。変更が許可されない理由で、アプリケーション全体にはHTTPSを介してのみアクセスする必要があります。ASP.NET WebFormsでHTTPS経由でelmah.axdにリモートアクセスする際に「禁止」エラーが発生しました
アプリケーションは動作していますが、ELMAHのログファイルにリモートからアクセスすることはできません。私はthis指示に従って、成功していないリモートアクセスを許可しています。
<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>
私は何ができる何か他のものがあります:
これは、現在の生産web.configファイル内の関連する設定はありますか? HTTPS経由でELMAHのログファイルにアクセスする際に何らかの制限があるのであれば、誰でも知っていますか?
現在、IIS 6.0および.NET Framework 2.0を使用しています。
あなたのweb.configはsecurity allowRemoteAccess = "yes"で設定されていますが、リンク先のドキュメントはsecurity allowRemoteAccess = "1"です。 – tawman
@tawman:リモートアクセスを有効にするにはallowRemoteAccess属性の値1、はい、真実またはそれ以上である。 – rsenna