tags:

views:

42

answers:

3

I've designed a website that works through my own PC.

I set the IIS to work with Custom Errors in case user ran into some unknown exception.

I've also added a check that the error page will e-mail me whenever it found an error.

Can I somehow get the error information (Stack and description) from the error page?

+2  A: 
Jirapong
Looks great. I was hoping to not use ANOTHER library in my project though. If there's a lighter solution - its preferable.
Faruz
It is very lightweight especially use of SQLite. rather than reinvent the wheel. this should take your 5 minutes.
Jirapong
A: 

Catch any errors that might be thrown and write them to the event log.

EventLog Logger = new EventLog();
Logger.Source = "ApplictionNme";

Logger.WriteEntry("Writing to event log.");
Chris Ballance
No problem writing to the EventLog, it actually happens automatically.I just wish that everytime it writes to the event log, I'll know what he writes and e-mail/SMS it to me.
Faruz
+1  A: 

You can use ASP.NET Health monitoring.

http://msdn.microsoft.com/en-us/library/ms998306.aspx

Mehdi Golchin