Click here to Skip to main content
16,005,316 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: JavaScript in C# in ASP.NET... Pin
N a v a n e e t h2-Apr-08 22:41
N a v a n e e t h2-Apr-08 22:41 
QuestionHow to catch Runtime errors and Log them on a ASP.NET project? Pin
pubududilena2-Apr-08 21:11
pubududilena2-Apr-08 21:11 
AnswerRe: How to catch Runtime errors and Log them on a ASP.NET project? Pin
eyeseetee2-Apr-08 21:19
eyeseetee2-Apr-08 21:19 
AnswerRe: How to catch Runtime errors and Log them on a ASP.NET project? Pin
Sandeep Akhare2-Apr-08 21:21
Sandeep Akhare2-Apr-08 21:21 
GeneralRe: How to catch Runtime errors and Log them on a ASP.NET project? Pin
Reelix2-Apr-08 21:36
Reelix2-Apr-08 21:36 
GeneralRe: How to catch Runtime errors and Log them on a ASP.NET project? Pin
Sandeep Akhare2-Apr-08 21:41
Sandeep Akhare2-Apr-08 21:41 
GeneralRe: How to catch Runtime errors and Log them on a ASP.NET project? Pin
Reelix2-Apr-08 21:47
Reelix2-Apr-08 21:47 
AnswerRe: How to catch Runtime errors and Log them on a ASP.NET project? Pin
N a v a n e e t h2-Apr-08 22:37
N a v a n e e t h2-Apr-08 22:37 
pubududilena wrote:
So How do we catch Runtime errors and Log them?


When any uncaught exception occurs, ASP.NET fires Application_Error event. Global.asax is having the event handler defined, you can use that. Or write a custom HTTP module and hook application error event. For logging, I have used log4net[^] - it's a great product.

Alternatively you can use web.config's custom error section. When any error occurs, it will be redirected to the specified page. But if the application is running in heavy traffic, this won't be a good approach.

All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia

How to use google | Ask smart questions

Questionhow to import data from excel to sql server 2005 Pin
ashok@techxygen2-Apr-08 20:40
ashok@techxygen2-Apr-08 20:40 
GeneralCross post - please ignore Pin
pmarfleet2-Apr-08 20:55
pmarfleet2-Apr-08 20:55 
GeneralRe: how to import data from excel to sql server 2005 Pin
Krishnraj2-Apr-08 20:58
Krishnraj2-Apr-08 20:58 
GeneralRe: how to import data from excel to sql server 2005 Pin
Sandeep Akhare2-Apr-08 21:06
Sandeep Akhare2-Apr-08 21:06 
AnswerRe: how to import data from excel to sql server 2005 Pin
ashok@techxygen3-Apr-08 0:21
ashok@techxygen3-Apr-08 0:21 
QuestionHow to dipsly a webform [modified] Pin
biswa472-Apr-08 20:12
biswa472-Apr-08 20:12 
GeneralRe: How to dipsly a webform Pin
pmarfleet2-Apr-08 21:01
pmarfleet2-Apr-08 21:01 
GeneralRe: How to dipsly a webform Pin
Krishnraj2-Apr-08 21:05
Krishnraj2-Apr-08 21:05 
GeneralRe: How to dipsly a webform Pin
biswa472-Apr-08 21:20
biswa472-Apr-08 21:20 
GeneralRe: How to dipsly a webform Pin
eyeseetee2-Apr-08 21:30
eyeseetee2-Apr-08 21:30 
GeneralRe: How to dipsly a webform Pin
biswa472-Apr-08 21:36
biswa472-Apr-08 21:36 
GeneralRe: How to dipsly a webform Pin
eyeseetee2-Apr-08 22:30
eyeseetee2-Apr-08 22:30 
GeneralRe: How to dipsly a webform Pin
Krishnraj2-Apr-08 23:10
Krishnraj2-Apr-08 23:10 
Questiondeleting a folder Pin
Soumini Ramakrishnan2-Apr-08 19:47
Soumini Ramakrishnan2-Apr-08 19:47 
GeneralRe: deleting a folder Pin
pmarfleet2-Apr-08 20:57
pmarfleet2-Apr-08 20:57 
GeneralRe: deleting a folder Pin
Himanshu Joshi2-Apr-08 21:09
Himanshu Joshi2-Apr-08 21:09 
Questionproblem in sending emails Pin
pediatric2-Apr-08 19:22
pediatric2-Apr-08 19:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.