Adi Drumea

Monday, June 04, 2007

[VS 2005] Quickly solving designer exceptions in Visual Studio 2005

From time to time (usually after code changes) some of your forms will not load in the VS 2005 designer showing instead the WSOD (white screen of darn) with an exception and stack trace. Unfortunately, from time to time, the stack trace is not useful and you may get stuck as I did today. The solution is to start another VS 2005 instance, to attach to the first instance and to make sure the debugger is set to catch all CLR exceptions (not only the unhandled ones). After that, re-oped the form and you'll break right into your source code. Usually (in my case) it's due to some setter not checking if it is in design mode and accessing unavailable resources.

0 Comments:

Post a Comment

<< Home