Application_Error VS Onexception encounters with pits

Source: Internet
Author: User
Encountered in the work of a giant pit, is about Application_Error and onexception, itself my application set the global Exception onexception processing, manually throw exceptions, Onexception normal capture, but once I will a method, Modified, the result is strange, the request return status code has been 500, but the exception is not captured, miss the elder sister, and then on the tracking method execution process, found that my business code is normal execution and return, but the return status of the received is still 500,  Then in the globle use Application_Error catch exception, unexpectedly really caught, this way only to find the problem, but still do not understand why onexception can't catch it? Please leave valuable comments!  Thank you. Web Toolbox

Application_Error VS Onexception encounters with pits

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.