Solved

logging untrapped errors in web config and SQL table

Posted on 2011-09-30
2
334 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Author Comment

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

Accepted Solution

by:
yeelokhk earned 500 total points
ID: 36895782
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

756 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