Save Exception details in Database using C# and VB.Net in ASP.Net

Last Reply 6 days ago By dharmendr

Posted 9 days ago

Hi,

I want to implement the logger in  c# to log the errors in application.

I also want the same to be saved in log table in database using Stored Procedure Please Guide me through it.

Posted 9 days ago

Hi Omega,

Refer below article. In this article error is saved in Text file. You need to save the error details in your database.

Error logging and Exception handling in ASP.Net using C# and VB.Net


Posted 6 days ago

In side the catch event you need to write code for insert the error details in database as doing for LogError.