Thursday, December 17, 2009

Fiddler, localhost in IE, and WCF

Fiddler does not see localhost in IE because it's hard-coded Microsoft secret: localhost can not have proxy, and Fiddler just a proxy. (Strange way to protect something on a client side and believe that there will be no any other clients.) There are two major ways to solve the problem:
  1. Do not use IE. Chrome and (I think) Firefox do not have troubles to proxy "localhost".
  2. a) In C:\WINDOWS\system32\drivers\etc\hosts add line 127.0.0.1       mypc b) When IE started from Visual Studio debugging, say http://localhost:37335/HRAppTestPage.aspx#/EmployeeList replace localhost with mypc: http://mypc:37335/HRAppTestPage.aspx#/EmployeeList Fiddler will see mypc and live goes on.
For WCF-binary there is a plugin for Fiddler: http://code.msdn.microsoft.com/wcfbinaryinspector

No comments:

Post a Comment