开发者

Capture original ASP.net Error page and send as email and display User Friendly message/page

开发者 https://www.devze.com 2023-01-29 17:46 出处:网络
I would like to be able to send an email with the same html that get generated when an exception occurs in asp.net however not to display this to the use开发者_如何学Pythonr.

I would like to be able to send an email with the same html that get generated when an exception occurs in asp.net however not to display this to the use开发者_如何学Pythonr.

Would this be simple? or would it just be best to manually output the exception details to an email?


You should look into a popular library called elmah:

  • http://code.google.com/p/elmah/

It will log your errors and let you view the original YSOD (yellow screen of death) and you can also optionally have them emailed to you.

0

精彩评论

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