WCF/WF - when i m trying to call wcf service i m getting error Proxy authentication required

Asked By theiry henry on 15-Aug-12 11:12 AM
when i m trying to call wcf service i m getting error Proxy authentication required.How to overcome this issue.
What are the ways to solve this problem.
Peter Bromberg replied to theiry henry on 15-Aug-12 04:45 PM

There are a number of binding settings available in WCF to control your Http proxy usage. These settings are available directly on BasicHttpBinding andWsHttpBinding (as well as on HttpTransportBindingElement when you are using aCustomBinding).

  • public bool UseDefaultWebProxy (default == true): if set to true, will use the global value HttpWebRequest.DefaultProxy as your proxy. HttpWebRequest.DefaultProxy is controllable through System.Net config, and defaults to using the system proxy settings (i.e. when you see in your Internet Explorer properties).
  • public Uri ProxyAddress (default == null): If you want to specify a proxy directly you can set a proxy Uri directly here. To ensure no proxy is used you can specify “null” here. In both cases be sure to set UseDefaultWebProxy = false as well.