0

ELMAH を Web サイトに追加しましたが、web.config に次のエラーが表示されます。 inheritinChildApplications には、コンパイラが気に入らないことを意味する赤い波線があります。ロケーション パスの部分はグレー表示されます。ELMAH を使用するのは初めてですが、これを修正する方法について何か考えがある人はいますか?

 <location path="elmah.axd" **inheritInChildApplications="false"**>
<system.web>
  <httpHandlers>
    <add verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" />
  </httpHandlers>
  <!-- 
    See http://code.google.com/p/elmah/wiki/SecuringErrorLogPages for 
    more information on using ASP.NET authorization securing ELMAH.

  <authorization>
    <allow roles="admin" />
    <deny users="*" />  
  </authorization>
  -->
</system.web>
<system.webServer>
  <handlers>
    <add name="ELMAH" verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" preCondition="integratedMode" />
  </handlers>
</system.webServer>

4

1 に答える 1