开发者

Elmah stops sending email after a while

开发者 https://www.devze.com 2023-01-24 06:50 出处:网络
We have an Elmah configured to send error notification emails to us whenever something is wrong. It all worked great for a while but we\'re noticing that sometimes Elmah would just stop sending error

We have an Elmah configured to send error notification emails to us whenever something is wrong. It all worked great for a while but we're noticing that sometimes Elmah would just stop sending error notifications, but still logs the error as XML.

So to verify, we have a test page which generates uncaught 500 server error. If we did an IIS reset and try the page, Elmah would correctly logs and send the notification error. However after a while (we're still unsure of how long or when it stopped working.) Elmah would only log the file without sending email notifications.

So far we have ruled out SMTP server not sending Elmah notifications because when we trigger the 500 server error while Elmah is in a bad state, there's no entry in SMTP server log at all.

In summary, the symptoms are as follow开发者_运维百科s:

  1. When Elmah is in a bad state, it'll stop generating Email notification but continue logging error in XML file.
  2. After IIS Reset, everything goes back to normal. (Though we do have scheduled app recycle everyday, but that doesn't seem to help in this situation.)
  3. The bad state seems to be triggered by whenever we overridethe existing binary to a newer release without restarting IIS. However, the 500 server error test indicates that Elmah sometimes goes into bad state, sometimes don't.

Is anyone observing similar symptoms?


Did you ever get this fixed?

http://groups.google.com/group/elmah/browse_thread/thread/51d24dd6c94e6dc2

Seems to be a similar problem and says:

Got it.... it's the JScript error filter. . If I strip the filter out, it works just fine.

0

精彩评论

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