2013-04-16 51 views
0

我添加了 ELMAH到我的网站,我在我的web.config中得到以下错误 inheritinChildApplications有一个红色的波浪形意味着编译器不喜欢它。并且位置路径部分变灰。林新使用ELMAH,任何人有任何想法如何纠正这一点?代码问题通过nuget添加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> 

回答

0

我不知道为什么这样做,但据我知道这不是一个错误。它在我的网站上做到了,Elmah继续工作得很好。