views:

47

answers:

3

In fact I have Idea about the exception handling. But while facing the interview I got this question by interviewer that , How to track the exception in application. means let say there is enterprise project, If we deliver the project to end user (forget for a while any tester is there/ or in my side who can track this exception). and while navigating or doing any operation , a custom error page occurs, which is define by developer from his web.config file.

let say application is of asp.net and c#

then how user will let know to developer that he get something exception while doing particular operation ? How developer can tack this exception without having any kind of debugging. Let say user not allow to deploy again. developer want to track this exception on deployed application. What he must to do. I know we can put try..Catch but need to now particulars..

+2  A: 

Have a look at ASP.NET health monitoring.

You can log exceptions to eventlog, files or even email.

leppie
+1  A: 

What leppie said. Look into Application-Level Tracing in Visual Studio .NET.

Tobiasopdenbrouw
A: 

If your code is properly handling exception, you will see those error being logged in event log.

Event though for all unhandled error also logged in eventlog but you may not know where exactly the error is but at least will give you an idea what part of the application is breaking.

shailesh
Can somebody tell me what exact meaning of handling the exceptions??
Lalit
That's bid topic. You can refer this article. http://www.codersource.net/asp-net/asp-net-advanced/exception-handling-with-c-in-asp-net.aspx
shailesh