Getting EntLib Exception Handleing working

Topics: CAB & Smart Client Software Factory
Mar 29, 2006 at 6:34 PM
originally posted by: justaddwater

Hello,

I am using the March 3 CTP

When I run in debug mode in VS on exception the EntLib Processes it as expected, once I run without debugging or on a client machine the exact exceptions show up as unhandled... How do I remedy this?
Mar 30, 2006 at 4:58 AM
originally posted by: matiaswoloski

Hi,

Try adding this line on Main

Application.SetUnhandledExceptionMode(UnhandledExceptionMode.ThrowException);

More info http://www.gotdotnet.com/codegallery/messageboard/thread.aspx?id=22f72167-af95-44ce-a6ca-f2eafbf2653c&mbid=f095dc16-95cc-4b64-9229-3510390aa521&threadid=ef20ffb3-c5e4-4c87-9fda-2bc99696dd98

Matias
http://staff.southworks.net/blogs/matiaswoloski
Mar 30, 2006 at 6:07 AM
originally posted by: justaddwater

Thanks, works for me !