Click here to Skip to main content
15,897,273 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I am developing global error handling module for many application with help of Application_error event of Global.asax file.

Its Application_error working fine when we doesn't handle exception in aspx.cs page.But if we handle exception at page label the Application_error event not firing.
if we use throw in catch block its working fine.But I do not want to use throw keyword in any condition because we have many running application with "throw: keyword.

I have BLL and DLL class.BLL class functions calling from Application_error event of Global class. I just want to use these classes and Application_error event code to all application.

Please suggest me how to call the Application_error when we handle exception at page label with only try and catch.
Posted

Please Avoid my last post. This is correct question.

Hi All,

I am developing global error handling module for many application with help of Application_error event of Global.asax file.

Its Application_error working fine when we doesn't handle exception in aspx.cs page.But if we handle exception at page label the Application_error event not firing.
if we use throw in catch block its working fine.But I do not want to use throw keyword in any condition because we have many running application without "throw" keyword.

I have BLL and DLL class.BLL class functions calling from Application_error event of Global class. I just want to use these classes and Application_error event code to all application.

Please suggest me how to call the Application_error when we handle exception at page label with only try and catch.
 
Share this answer
 
Comments
RaisKazi 23-Dec-11 5:10am    
Use "Improve question" link to update your Question details.
Basically Try..Catch for caught local exception occoured on page. uncought execptions are handeled by Global.asax.
here is good link to explain well, Application_error vs try catch[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900