Peter McGrattan’s Weblog

Silverlight, WCF, ASP.NET, AJAX, Graphics, RIA

Posts Tagged ‘Unhandled Exceptions’

Silverlight 2.0 Unhandled Exceptions

Posted by petermcg on June 3, 2008

It can be difficult to debug exceptions in a Silverlight applications in Visual Studio 2008 in certain scenarios at present.  If you’re having trouble tracking down where an exception is occurring in your Silverlight application and find it awkward dealing with the yellow exclamation :

Yellow Exclamation

Don’t forget you’ve got the Application events to help you out.  An event handler for the UnhandledException event of the Application class is wired up by default for new Silverlight Applications.  If you set a breakpoint here you can get a call stack back to where the problem is occurring :

Application UnhandledException


Posted in Debugging, Silverlight, Visual Studio 2008 | Tagged: , | Comments Off on Silverlight 2.0 Unhandled Exceptions