Page view counter

Silverlight Tips of the Day - Blog by Mike Snow

Game Programming with Silverlight

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:

image

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:

  1. Inspect all HTTP traffic.
  2. Set breakpoints.
  3. Modify incoming and outgoing data.
  4. 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:

image

Thank you,
--Mike Snow

 Subscribe in a reader

Comments

Microsoft Weblogs said:

Recently when deploying a Silverlight application with a web service I forgot to include a client access

# October 20, 2008 6:36 PM

How to Monitor HTTP Traffic for Errors said:

Pingback from  How to Monitor HTTP Traffic for Errors

# October 21, 2008 1:37 AM

Community Blogs said:

In this issue: Rob Zelt, Page Brooks, Chad Campbell, Jeff Prosise, Mike Snow, Jordan Knight, and Silverlight

# October 21, 2008 3:07 AM

Silverlight news for October 21, 2008 said:

Pingback from  Silverlight news for October 21, 2008

# October 21, 2008 4:09 AM

2008 October 21 - Links for today « My (almost) Daily Links said:

Pingback from  2008 October 21 - Links for today « My (almost) Daily Links

# October 21, 2008 4:34 AM

Dew Drop - October 21, 2008 | Alvin Ashcraft's Morning Dew said:

Pingback from  Dew Drop - October 21, 2008 | Alvin Ashcraft's Morning Dew

# October 21, 2008 8:54 AM

DZaK said:

Have you tried "WebDevHelper" (projects.nikhilk.net/WebDevHelper)? This tool was recommended by Tim Heuer.

And does fiddler is a better tool to http monitoring?

Best Regards,

JAcek Ciereszko

# October 21, 2008 3:19 PM

Silverlight Tips of the Day - Blog by Mike Snow said:

In Tip of the Day #42 I discussed how to create Silverlight-enabled WCF web service. In this tip I will

# October 21, 2008 4:20 PM

nosuchthingas2 said:

I prefer WebDevHelper as well.  It doesn't require the setup that fiddler does and is blindingly simple to use.

# October 22, 2008 9:18 AM

mike.snow said:

I haven't tried WebDevHelper but I will defintely check it out. Thanks fo the link.

# October 22, 2008 2:37 PM

Fehler des HTTP Traffic ??berwachen at Blog von J??rgen Ebner said:

Pingback from  Fehler des HTTP Traffic ??berwachen at Blog von J??rgen Ebner

# October 23, 2008 3:57 AM

Visual Web Developer Team Blog said:

Silverlight Tip of the Day #66 Title: How to copy XAML for Silverlight from Expression Designer Silverlight

# November 3, 2008 1:40 PM

Silverlight Tips of the Day - Blog by Mike Snow said:

The purpose of this post is to create an outline summary all the blogs from my Silverlight tips of the

# January 2, 2009 5:56 PM

o UAU nosso de cada dia said:

essa lista eu copiei desse blog bárbaro (acompanhe por RSS você também): uma lista de dicas super úteis

# January 3, 2009 6:24 AM

jin_u as blog » Blog Archive » ??????????????? ??? ?????? said:

Pingback from  jin_u as blog  » Blog Archive   » ??????????????? ??? ??????

# January 14, 2009 7:49 PM

快乐学习 said:

在《信息系统开发平台OpenExpressApp-配置CSLA的WCF数据门户代理》中我的压缩小节中我介绍了一个网络调试工具,当时是用它来查看了一下如果项目组应用下gzip压缩率大概能达到多少,已...

# December 7, 2009 9:41 AM