Hello brilliant guys on Stackoverflow, please I would like to know if in ASP.Net C# would the Application end when an error occurs or when Application_Error is triggered? From my understanding, it shouldn’t, I just want to be double sure
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Generally if an exception happens in a thread associated with a request, it triggers Application_Error event and if not handled will return a HTTP 500 error to the client.
But, an un-handled exception in a thread not associated with a request will take down the worker process (in other words, kills your application). This occurs even if you have a handler setup via the Application_Error method. MSDN Link for Exception in Managed Threads for more details