Silverlight Tip of the Day #63 – How to Monitor HTTP Traffic for Errors
Recently when deploying a Silverlight application with a web service I forgot to include a client access policy and cross domain file. As a result I got the following exception when attempting to browse to my application:
The exception did not make the error very obvious and I spent more time then I should have debugging it. Fortunately I discovered a rather awesome, freeware tool that quickly identified the problem. The tool, called Fiddler, is available at http://www.fiddlertool.com/fiddler. In a nutshell, Fiddler is a HTTP debugging proxy which logs all HTTP traffic between your computer and the Internet. You can:
- Inspect all HTTP traffic.
- Set breakpoints.
- Modify incoming and outgoing data.
- Extend it with any .NET language.
When running Fiddler then browsing to to my web site I was able to see right away that Silverlight was looking for the files clientaccesspolicy.xml and crossdomain.xml:

Thank you,
--Mike Snow
Subscribe in a reader