Just another site

How to supply dedicated credentials for webproxy authentication in WCF client – Part 1

This fix assumes you have deployed the application & it is running under the credentials of the user with access to internet.Set the proxy in IE which is the default web proxy or for system web proxy use netsh to setup winhhtp proxy.

<basicHttpBinding …. useDefaultWebProxy=”Boolean”>

<defaultProxy useDefaultCredentials=”true”/>

useDefaultWebProxy:A Boolean value that specifies whether the auto-configured HTTP proxy of the system should be used, if available. The default is true.

The above settings will autheticate the user against the proxy for WCF clients

In my next post we will see how to do it programmatically

Reference :
1. For understanding System.serviceModel configuration refer Ref:
2. For understanding configuration refer refer Ref: Do read this section if your proxy configuration uses other mechansims like automatic detetcion,script etc.
3. A good short blog on the same topic as above :


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: