开发者

How do I debug a situation where Elmah is not logging errors on host but is locally?

So I have a situation where locally, Elmah is working correctly. When I generate exceptions, Elmah is correctly logging them.

However, after deploying the system out to my GoDaddy system, Elmah doesn't seem to work. I can load the Elmah.axd site correctly with no errors (it shows nothing though), but when I trigger exceptions, no error xml files are actually logged. How can I go about debugging this, since Elmah doesn't se开发者_运维知识库em to be throwing any exceptions?

For reference, my Elmah config is:

  <elmah>
    <security allowRemoteAccess="true" />
    <errorLog type="Elmah.XmlFileErrorLog, Elmah" logPath="~/App_Data" />
  </elmah>


Did you check the permissions on appdata folder...it needs to have read and write permission... i would create a separate folder instead of using appdata. Assign the user account to that folder with full permission.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜