Handling global errors in a Silverlight application


show more Handling global errors in a Silverlight application provides you with in-depth training on Developer. Taught by Walt Ritscher as part of the Silverlight 5 Essential Training show less
please wait ...

Handling global errors in a Silverlight application

No matter how well you protect your code with exception handlers, errors can slip through your defenses. If you don't construct your own global handler, your application will use the Silverlight defaults. In this movie, I will show you how those defaults are configured, and how to implement your own error screens. For this demonstration, I will use Visual Studio and load a project called GlobalErrors. Let me show you the default UI before I introduce any exceptions. Press F5 to run the application and click on this Load vacation pictures, which loads a picture into the image control. My application is working as expected.

Let me introduce a bug into my code. I will go to my MainPage.xaml.cs file, and I am going to change the name of this file from a C to a K. So we'll say kabin.jpg. This should cause an exception when it attempts to load the stream. I am ready to test, but before I do, let's talk about the Debug menu. I have two choices for starting my app from Visual Studio: Star...

Handling global errors in a Silverlight application
Video duration: 5m 46s 8h 52m Beginner

Viewers:

Handling global errors in a Silverlight application provides you with in-depth training on Developer. Taught by Walt Ritscher as part of the Silverlight 5 Essential Training

Subject:
Developer
Software:
Silverlight Visual Studio
Author:
please wait ...