私の MVC4 アプリケーションでは、NUGET を使用して ELMAH をアプリケーションにロードしました。しかし、web.config では、次のエラー メッセージが表示されます。
場所要素は使用されていません。elmah.axd にプロジェクト アイテムが見つかりません。
この名前でファイルを作成するつもりですか? これを修正するにはどうすればよいですか?
<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>
</location>