c # global exception failed to catch the exceptions (.net framework4.5 old project)

Performance issues:

Application error, direct feedback from users isAn error

Direct explosion, the user sees this page, we may think that the company should "run away" and emergency treatment. . . . .

 

Process:

1. The specific projects are redis error code of the exception is not caught shop, so check the configuration, no problem to locate

2. The suspect is compiled project is way line debug mode, not a release mode, check the project ci, found that there is compiled in debug mode, but after investigation, experimentation, not the cause of the error

3. Check webconfig's customErrors configuration, identify problems, customErrors configured to Off, the uncaught error handling through application will show a detailed error message to each user access to the site (yellow page error)

 

amendment:

Modify the customErrors configured to On, it will always hide the error message, the problem is solved

 

 

 

Guess you like

Origin www.cnblogs.com/youngsheep/p/11997135.html