Solved

logging untrapped errors in web config and SQL table

Posted on 2011-09-30
2
325 Views
Last Modified: 2012-05-12
ASP.Net  I need to log untrapped errors into a sql table, using webconfig ,
any examples? I need the table schema too, thanks.
0
Comment
Question by:john
2 Comments
 

Author Comment

by:john
Comment Utility
Maybe something in the global.aspx file
using:
Server.GetLastError.GetBaseException
0
 
LVL 9

Accepted Solution

by:
yeelokhk earned 500 total points
Comment Utility
You can catch the un-handled exception in Global.asax. And then insert a record in your SQL DB

Here is an example on catching un-handled exception and send out an email.
http://www.asp.net/hosting/tutorials/processing-unhandled-exceptions-cs

You may refer to this example and modify it to what you need
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
This video discusses moving either the default database or any database to a new volume.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now