I have created a WinForms application using one of VS2010 templates, but discovered that it does not throw database exceptions in debugging mode. I have to explicitly wrap a method into a try-catch block to view errors, otherwise it simply interrupts execution of method without showing any errors. I did not modify something in app config.
I have created a WinForms application using one of VS2010 templates, but discovered that
Share
You probably are connecting to database in
Form.Loadevent (Form1_Loadfor example). Exceptions thrown in Form.Load event will not bubble up the stack trace when the following are met:For more information see this blog post: http://blog.adamjcooper.com/2011/05/why-is-my-exception-being-swallowed-in.html