I have a windows forms 开发者_StackOverflowapplication (.NET C# 3.5)... that is throwing an error.. but I have 2 scenarios:
Client: on the client side.. the error is logged into a log.txt file.. AND an error pop up message appears
See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text ************** System.Threading.ThreadAbortException: Thread was being aborted. at System.Windows.Forms.Internal.IntUnsafeNativeMethods.IntSaveDC(HandleRef hDC)
...
Local: in my local computer... when the application throws the error, it is logged to the log.txt file.. but I DON'T see any pop up message...
so.. I was wondering, if maybe I have some Windows option to: NOT THROW unhandled errors ?
Note: I don't think it is something in the application, because the build is exactly the same version. so it must be something in the environment.
There was a change in how unhandled exceptions were treated on threads between v1.1 and v2.0 of .Net. It sounds like on your machine, the v1.1 model is being used, where the exception is swallowed. Do you have the tag <legacyUnhandledExceptionPolicy enabled='1'/>
in your machine.config or app.config file?
精彩评论