SpriteHand
Module Border
  Using Fiddler to Capture RIA Services
Module Border
Location: BlogsAndy's Blog    
Posted by: host 12/13/2009 8:50 AM

If you're a fan of Fiddler, you may have used it with prior versions of RIA Services to capture the traffic between your Silverlight client and your server side. This worked great in the past because RIA Services used a (somewhat bastardized) JSON encoding format.

But in the latest release of WCF RIA Services, the default encoding format is binary - which is not supported by Fiddler out of the box. Luckily, Samuel Jack has created a WCF Binary Inspector plug-in for Fiddler, which allows for examination of the new default encoding.

Here is how to setup Fiddler to capture traffic with WCF RIA Services:

Download and Install Fiddler

Download the Fiddler WCF Binary Inspector plugin

Extract BinaryMessageFiddlerExtension.dll and copy to the Fiddler Inspectors Directory, by default C:\Program Files\Fiddler2\Inspectors

Now, start up Fiddler – and then start up your RIA Services application. You’ll quickly notice that you’re not capturing any traffic L This is because Fiddler doesn’t capture from localhost by default. There are a variety of solutions to this, some of which may or may not work for your configuration.

The easiest solution that works for me is to append a period (“.”) just after localhost in your application's URL.

After that, you should see captured sessions as you make requests, and you can visit the "WCF Binary" tabs to see the request and response values, decoded.

Permalink |  Trackback

Comments (6)   Add Comment
Re: Using Fiddler to Capture RIA Services    By Anonymous on 12/13/2009 1:51 PM
Brilliant, thanks for that! Also, if anyone is having the following issue: [Fiddler] Connection to localhost. failed.

Try replacing localhost:xxxx with 127.0.0.1.:xxxx. NOTE: the period before the colon ".:"

Re: Using Fiddler to Capture RIA Services    By Anonymous on 12/14/2009 9:44 AM
Thanks Andy for this important post!

Alex Y

Re: Using Fiddler to Capture RIA Services    By Anonymous on 12/28/2009 2:53 PM
Thanks this is good information Andy. I only forgot to update my Fiddler, this is important if you haven't done this for a long time.

-
Mark Monster

Re: Using Fiddler to Capture RIA Services    By Anonymous on 12/29/2009 12:17 PM
if you encounter this message "No connection could be made because the target machine actively refused it"

you have to disable IPv6 in Fiddler Tools from -> Fiddler Options

Re: Using Fiddler to Capture RIA Services    By Anonymous on 1/13/2010 6:11 PM
Thanks for the Post. This is really cool...

Re: Using Fiddler to Capture RIA Services    By Anonymous on 2/22/2010 5:06 PM
Just what I needed, thanks


Title:
Comment:
Add Comment   Cancel 
Module Border Module Border
Module Border
  Subscribe
Module Border

RSS

Module Border Module Border
Module Border
  Diversions
Module Border

BOSS LAUNCH
This physics game won first place in the Server Quest Contest. Created using Silverlight 2, the Physics Helper Library,  and the Farseer Physics Engine.
PLAY IT

MORE INFO



DESTROY ALL INVADERS
A scrolling shooter game where the objective is to destroy the invading UFO's flying over a neighborhood of your choosing. Imagery provided by Microsoft Virtual Earth. Created using Silverlight 2.
PLAY IT

INFO AND CODE



PHYSICS HELPER DEMOS
These demos were created for the Physics Helper Library, which makes it easy to create physics games and simulations using Expression Blend, Silverlight, and the Farseer Physics Engine.
PLAY IT

INFO AND CODE



HOOK SHOT
This little basketball game took first place in the TeamZoneSports Silverlight Contest. Created using Silverlight 2 and the Farseer Physics engine.
PLAY IT

MORE INFO



SORT THE FOOBARS
A game where you need to sort the good foobars from the bad ones. Created using Silverlight 2 and the Farseer Physics engine.
PLAY IT

MORE INFO



POLYGON PHYSICS DEMO
A demo showing polygon physics where the user draws physics objects with the mouse. Created using Silverlight 2 and the Farseer Physics engine.
PLAY IT

MORE INFO



SILVERLIGHT ROCKS!
Destroy the asteroids before they destroy your ship! Created using Silverlight 2.
PLAY IT

INFO AND CODE



FISH GAME
A simple game of harpoon-the-fish. Written using the AJAX Sprite Toolkit.
PLAY IT

INFO AND CODE

Module Border Module Border
Module Border
  Search_Blog
Module Border
Module Border Module Border
Module Border
  Blog_Archive
Module Border
Module Border Module Border
Copyright (c) 2010 andy.beaulieu.com - Login