我使用NuPack工具将Elmah添加到我的开发人员计算机上的一个站点上,这很像一个魅力,但是当我向elmah.axd页面发送请求时,所有返回的结果都是500 - 内部服务器错误。针对elmah.axd的请求始终会因500内部服务器错误而失败。为什么? :-(
我的代码设置:
Visual Studio 2010中
网站建立在EPiServer的顶部4.62B
运行在.NET框架2(因为EPiServer的)
我的IIS设置:
IIS 7.5
Classic .NET AppPool(因为EPiServer)
我的电脑:
运行Windows 7 32位在web.config中
ELMAH内容(因为EPiServer的):
<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" />
<errorLog type="Elmah.XmlFileErrorLog, Elmah" logPath="~/App_Data" />
</elmah>
在这个阶段,我并不真的需要allowRemoteAccess因为我从我的计算机上运行everyting,而是试图在此刻什么。我知道elmah.dll正在运行,因为日志文件正在创建。
<add verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" />
inside system.web | HttpHandlers的。
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" />
<add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" />
<add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" />
inside system.web |的HttpModules。
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" />
<add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" />
<add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" />
inside system.webServer |模块
<add name="Elmah" verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" />
inside system.webServer | handlers
我已经基本上添加了每个建议,我可以在网上找到web.config,但没有它做任何好处。这导致我相信别的什么是错的,有什么想法?
将此标记为答案。 Beeing卡在单线程池中似乎是elmah不能正常工作的原因(可能ELMAH正常工作,但单线程池无法正确使用它)。 – JustAnotherCoder 2011-05-25 05:12:17