Capture all unhandled exceptions automatically with WebService

后端 未结 3 875
清歌不尽
清歌不尽 2021-01-13 10:23

I have a C# WebService application in which I want to capture all unhandled exceptions thrown from the application.

How can I do this?

3条回答
  •  说谎
    说谎 (楼主)
    2021-01-13 10:52

    One way will be to subscribe to AppDomain.UnhandledException event somewhere in App_Start handler.

提交回复
热议问题