This project is read-only.

Exception Handling Application Building Block for Silverlight and Windows Phone 7 projects

for client side exception logging and central storage using WCF services, with AppFabric Dashboard integration (on IIS 7+).

Project Description
This code will help you handle and log client side exceptions in your Silverlight 4 and WP7 projects.
Errors that occur in clients can be sent to your loggingservice. The service will store them.
It's developed in C#, using VS2010.

How to use Silverlight Logging in your Silverlight or WP7 project:

  1. What does this button do? How it works
  2. How to configure your Client application How to: Client
  3. How to configure your Server application How to: Server

This block contains the following features:

Client code

  1. Library for Silverlight 4
  2. Library for WP7
  3. A sample Silverlight Client Project using the library.
  4. A sample Windows Phone 7 Client Project using the library.

Both client-libraries contain the same features:
  1. ExceptionPolicy (to be called from your code, for handling exceptions)
  2. Store (a client side storage for exceptions, for working offline)
  3. SyncBehavior (a policy for synchronizing error to the service)
  4. LogStatusControlViewModel (a viewmodel that will provide status info to a userinterface)
  5. LogStatusControlView (a view that shows the info from LogStatusControlViewModel, for developer debugging support)
  6. LoggingService (the proxy for the loggingservice)

Server code

  1. LoggingService (the WCF service that will provide clients with configuration and store exceptions from clients)
  2. ILoggingSink (a MEF composable interface that will be used to store errors)
  3. 2 Sample implementations of ILoggingSink, an AppFabric sink and a SessionState sink.
  4. Sample configuration in the web.config file.

Read this

If you want to use this code, please read this page: Read Me
For Dutch people: Achtergrond Dutch

More info about WP7 development:


The code is published under GNU Library General Public License (LGPL)
You can use it, or change it any way you see fit.

Please contribute

Leave your comments on the 'discussions' page.


Loek Duys
Contact me on Twitter:!/lduys @lduys


Make sure to read the Disclaimer

Last edited Jan 20, 2011 at 8:21 PM by lduys, version 19