Featured post
.net - Handling configuration errors - global.asax? -
i have web application uses third party connector access salesforce. when set works should. contacts salesforce populates application using membership providers.
however when loose connection salesforce site goes down throwing "configuration error". able handle error more gracefully if possible. there way this, maybe in global.asax? best case able disable connection still having website , running.
any thoughts?
you have many options:
- try-catch-finally
- page_error method
- application_error method
- web.config file
if want display error message on parts of page, use try-catch , can continue other transactions not require connection. or can use page_error catch unhanded errors on page-level or application_error (you using global.asax file) exceptions not handled try-catch , page_error method. if prefer redirect different error page use section on web.config.
for references, can read these articles:
- Get link
- X
- Other Apps
Comments
Post a Comment