Go to DotNetFunda.com
 Online : 1481 |  Welcome, Guest!   Login
 
Home > Forums > ASP.NET 3.5 > how we handle exceptions in asp.net application ...

ASP.NET 3.5 Forum



how we handle exceptions in asp.net application

Author: Jameschowdare | Posted on: 2/8/2010 | Category: ASP.NET 3.5 | Views: 137 | Level: Starter | Status: [Member]

dont tel use try catch...

i want to know instead of each page using above

is there the centralization procedure there,

and where these store all the logged information
and explain us more on this if i missed about anything abt exception handling


Thanks
JamesOnly


Reply

Found interesting? Add this to:

| More

 Responses

Raja  
Posted on: 2/8/2010 9:17:59 AM
Level: Starter | Status: [Member] | Reply

This can be done using Application_Error event in the Global.aspx file, so if any error will occur this method will fire and you can log that error wherever required.

Also go through this link, it might help http://www.15seconds.com/issue/030102.htm

Regards


Regards,
Raja, USA

Jameschowdare, please login to Mark As Answer, if this helps | Alert Moderator 

Nishithraj  
Posted on: 2/11/2010 4:03:10 AM
Level: Bronze | Status: [Member] | Reply

Even you can capture the error events in global.asax
void Application_Error(object sender, EventArgs e) 

{
// Code that runs when an unhandled error occurs

}


for more about the try catches disadvantages refer

http://forums.asp.net/p/1344201/2728069.aspx


With regards
Nishithraj Narayanan

Jameschowdare, please login to Mark As Answer, if this helps | Alert Moderator 

Sagarp  
Posted on: 3/26/2010 6:09:33 AM
Level: Bronze | Status: [Member] | Reply

Hi friend

check following Article

http://www.dotnetjohn.com/articles.aspx?articleid=42 




Thanks
SagarP
http://www.emanonsolutions.net
http://emanonsolutions.blogspot.com/

Jameschowdare, please login to Mark As Answer, if this helps | Alert Moderator 

Latest Posts

More ... 

 Write New Post


Advertisement

About Us | The Team | Advertise | Contact Us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you found plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 9/3/2010 4:36:25 AM