开发者

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

开发者 https://www.devze.com 2023-02-19 19:47 出处:网络
So I have a situation where locally, Elmah is working correctly.When I generate exceptions, Elmah is correctly logging them.

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

精彩评论

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