 |
|
|
|
Using Fiddler to Capture RIA Services
|
|
|
 |
|
Location: Blogs Andy'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 (8)
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
|
|
|
Re: Using Fiddler to Capture RIA Services
|
By Anonymous on
9/20/2010 2:32 PM
|
|
Thanks!!!
|
|
|
Re: Using Fiddler to Capture RIA Services
|
By Anonymous on
3/1/2012 8:54 AM
|
|
If I add a period, I get "Firefox doesn't know how to open this address, because the protocol (localhost.) isn't associated with any program."
|
|
|
|
 |
|
 |
|
|