Cannot provide access to users behind internet proxy server - wshttp endpoint<p class=MsoNormal><span style="font-size:12px">IIS (service is configured) &amp; Windows client application uses the service for bi-directional services.</span></p> <p class=MsoNormal><span><span style="font-size:9.0pt;font-family:'Verdana','sans-serif';color:black"> IIS Config:</span></span></p> <p class=MsoNormal> <pre lang=x-xml>&lt;!-- Server config --&gt; &lt;system.serviceModel&gt; &lt;bindings&gt; &lt;wsHttpBinding&gt; &lt;binding name=&quot;NoSecurity&quot; closeTimeout=&quot;00:05:00&quot; openTimeout=&quot;00:05:00&quot; receiveTimeout=&quot;00:10:00&quot; sendTimeout=&quot;00:05:00&quot; bypassProxyOnLocal=&quot;false&quot; transactionFlow=&quot;false&quot; hostNameComparisonMode=&quot;StrongWildcard&quot; maxBufferPoolSize=&quot;524288&quot; maxReceivedMessageSize=&quot;50000000&quot; messageEncoding=&quot;Text&quot; textEncoding=&quot;utf-8&quot; useDefaultWebProxy=&quot;true&quot; allowCookies=&quot;false&quot;&gt; &lt;readerQuotas maxDepth=&quot;2147483647&quot; maxStringContentLength=&quot;2147483647&quot; maxArrayLength=&quot;2147483647&quot; maxBytesPerRead=&quot;2147483647&quot; maxNameTableCharCount=&quot;2147483647&quot; /&gt; &lt;security mode=&quot;None&quot;/&gt; &lt;/binding&gt; &lt;/wsHttpBinding&gt; &lt;/bindings&gt; &lt;services&gt; &lt;service name=&quot;CcsClientDataSyncServices.CcsDataCacheSyncService&quot; behaviorConfiguration=&quot;CcsClientDataSyncServices.CcsDataCacheSyncServiceBehavior&quot;&gt; &lt;endpoint address =&quot;&quot; binding=&quot;wsHttpBinding&quot; contract=&quot;CcsClientDataSyncServices.ICcsDataCacheSyncContract&quot; bindingConfiguration=&quot;NoSecurity&quot;/&gt; &lt;endpoint address=&quot;mex&quot; binding=&quot;mexHttpBinding&quot; contract=&quot;IMetadataExchange&quot; /&gt; &lt;/service&gt; &lt;/services&gt; &lt;behaviors&gt; &lt;serviceBehaviors&gt; &lt;behavior name=&quot;CcsClientDataSyncServices.CcsDataCacheSyncServiceBehavior&quot;&gt; &lt;serviceMetadata httpGetEnabled=&quot;True&quot; /&gt; &lt;serviceDebug includeExceptionDetailInFaults=&quot;True&quot; /&gt; &lt;/behavior&gt; &lt;/serviceBehaviors&gt; &lt;/behaviors&gt; &lt;/system.serviceModel&gt; &lt;!-- Client config --&gt; &lt;system.serviceModel&gt; &lt;bindings&gt; &lt;wsHttpBinding&gt; &lt;binding name=&quot;NoSecurity&quot; closeTimeout=&quot;00:05:00&quot; openTimeout=&quot;00:05:00&quot; receiveTimeout=&quot;00:10:00&quot; sendTimeout=&quot;00:05:00&quot; bypassProxyOnLocal=&quot;false&quot; transactionFlow=&quot;false&quot; hostNameComparisonMode=&quot;StrongWildcard&quot; maxBufferPoolSize=&quot;524288&quot; maxReceivedMessageSize=&quot;50000000&quot; messageEncoding=&quot;Text&quot; textEncoding=&quot;utf-8&quot; useDefaultWebProxy=&quot;true&quot; allowCookies=&quot;false&quot;&gt; &lt;readerQuotas maxDepth=&quot;2147483647&quot; maxStringContentLength=&quot;2147483647&quot; maxArrayLength=&quot;2147483647&quot; maxBytesPerRead=&quot;2147483647&quot; maxNameTableCharCount=&quot;2147483647&quot; /&gt; &lt;security mode=&quot;None&quot; /&gt; &lt;/binding&gt; &lt;/wsHttpBinding&gt; &lt;/bindings&gt; &lt;client&gt; &lt;endpoint address=&quot;http://testserver:81/CcsClientDataSyncServices/Service.svc&quot; binding=&quot;wsHttpBinding&quot; bindingConfiguration=&quot;NoSecurity&quot; contract=&quot;ServiceReference.ICcsDataCacheSyncContract&quot; name=&quot;WSHttpBinding_ICcsDataCacheSyncContract&quot;&gt; &lt;identity&gt; &lt;servicePrincipalName value=&quot;host\rajeshtest&quot; /&gt; &lt;/identity&gt; &lt;/endpoint&gt; &lt;/client&gt; &lt;/system.serviceModel&gt; </pre> </p> <p class=MsoNormal><span style="font-family:'Courier New';font-size:13px">Some of the client’s (windows application) pc internet connection is behind a proxy, how do I configure and what are the settings I should provide them to connect to the service?</span></p> <p class=MsoNormal><span style="font-family:'Courier New';font-size:small"><span style="font-size:13px">Thnks,</span></span></p> <p class=MsoNormal><span style="font-family:'Courier New';font-size:small"><span style="font-size:13px">Raj</span></span></p><hr class="sig">Rx© 2009 Microsoft Corporation. All rights reserved.Fri, 10 Jul 2009 16:04:52 Z94b455b9-488b-457a-a3a3-13c87e02cabehttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/94b455b9-488b-457a-a3a3-13c87e02cabe#94b455b9-488b-457a-a3a3-13c87e02cabehttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/94b455b9-488b-457a-a3a3-13c87e02cabe#94b455b9-488b-457a-a3a3-13c87e02cabeRxrahttp://social.msdn.microsoft.com/Profile/en-US/?user=RxraCannot provide access to users behind internet proxy server - wshttp endpoint<p class=MsoNormal><span style="font-size:12px">IIS (service is configured) &amp; Windows client application uses the service for bi-directional services.</span></p> <p class=MsoNormal><span><span style="font-size:9.0pt;font-family:'Verdana','sans-serif';color:black"> IIS Config:</span></span></p> <p class=MsoNormal> <pre lang=x-xml>&lt;!-- Server config --&gt; &lt;system.serviceModel&gt; &lt;bindings&gt; &lt;wsHttpBinding&gt; &lt;binding name=&quot;NoSecurity&quot; closeTimeout=&quot;00:05:00&quot; openTimeout=&quot;00:05:00&quot; receiveTimeout=&quot;00:10:00&quot; sendTimeout=&quot;00:05:00&quot; bypassProxyOnLocal=&quot;false&quot; transactionFlow=&quot;false&quot; hostNameComparisonMode=&quot;StrongWildcard&quot; maxBufferPoolSize=&quot;524288&quot; maxReceivedMessageSize=&quot;50000000&quot; messageEncoding=&quot;Text&quot; textEncoding=&quot;utf-8&quot; useDefaultWebProxy=&quot;true&quot; allowCookies=&quot;false&quot;&gt; &lt;readerQuotas maxDepth=&quot;2147483647&quot; maxStringContentLength=&quot;2147483647&quot; maxArrayLength=&quot;2147483647&quot; maxBytesPerRead=&quot;2147483647&quot; maxNameTableCharCount=&quot;2147483647&quot; /&gt; &lt;security mode=&quot;None&quot;/&gt; &lt;/binding&gt; &lt;/wsHttpBinding&gt; &lt;/bindings&gt; &lt;services&gt; &lt;service name=&quot;CcsClientDataSyncServices.CcsDataCacheSyncService&quot; behaviorConfiguration=&quot;CcsClientDataSyncServices.CcsDataCacheSyncServiceBehavior&quot;&gt; &lt;endpoint address =&quot;&quot; binding=&quot;wsHttpBinding&quot; contract=&quot;CcsClientDataSyncServices.ICcsDataCacheSyncContract&quot; bindingConfiguration=&quot;NoSecurity&quot;/&gt; &lt;endpoint address=&quot;mex&quot; binding=&quot;mexHttpBinding&quot; contract=&quot;IMetadataExchange&quot; /&gt; &lt;/service&gt; &lt;/services&gt; &lt;behaviors&gt; &lt;serviceBehaviors&gt; &lt;behavior name=&quot;CcsClientDataSyncServices.CcsDataCacheSyncServiceBehavior&quot;&gt; &lt;serviceMetadata httpGetEnabled=&quot;True&quot; /&gt; &lt;serviceDebug includeExceptionDetailInFaults=&quot;True&quot; /&gt; &lt;/behavior&gt; &lt;/serviceBehaviors&gt; &lt;/behaviors&gt; &lt;/system.serviceModel&gt; &lt;!-- Client config --&gt; &lt;system.serviceModel&gt; &lt;bindings&gt; &lt;wsHttpBinding&gt; &lt;binding name=&quot;NoSecurity&quot; closeTimeout=&quot;00:05:00&quot; openTimeout=&quot;00:05:00&quot; receiveTimeout=&quot;00:10:00&quot; sendTimeout=&quot;00:05:00&quot; bypassProxyOnLocal=&quot;false&quot; transactionFlow=&quot;false&quot; hostNameComparisonMode=&quot;StrongWildcard&quot; maxBufferPoolSize=&quot;524288&quot; maxReceivedMessageSize=&quot;50000000&quot; messageEncoding=&quot;Text&quot; textEncoding=&quot;utf-8&quot; useDefaultWebProxy=&quot;true&quot; allowCookies=&quot;false&quot;&gt; &lt;readerQuotas maxDepth=&quot;2147483647&quot; maxStringContentLength=&quot;2147483647&quot; maxArrayLength=&quot;2147483647&quot; maxBytesPerRead=&quot;2147483647&quot; maxNameTableCharCount=&quot;2147483647&quot; /&gt; &lt;security mode=&quot;None&quot; /&gt; &lt;/binding&gt; &lt;/wsHttpBinding&gt; &lt;/bindings&gt; &lt;client&gt; &lt;endpoint address=&quot;http://testserver:81/CcsClientDataSyncServices/Service.svc&quot; binding=&quot;wsHttpBinding&quot; bindingConfiguration=&quot;NoSecurity&quot; contract=&quot;ServiceReference.ICcsDataCacheSyncContract&quot; name=&quot;WSHttpBinding_ICcsDataCacheSyncContract&quot;&gt; &lt;identity&gt; &lt;servicePrincipalName value=&quot;host\rajeshtest&quot; /&gt; &lt;/identity&gt; &lt;/endpoint&gt; &lt;/client&gt; &lt;/system.serviceModel&gt; </pre> </p> <p class=MsoNormal><span style="font-family:'Courier New';font-size:13px">Some of the client’s (windows application) pc internet connection is behind a proxy, how do I configure and what are the settings I should provide them to connect to the service?</span></p> <p class=MsoNormal><span style="font-family:'Courier New';font-size:small"><span style="font-size:13px">Thnks,</span></span></p> <p class=MsoNormal><span style="font-family:'Courier New';font-size:small"><span style="font-size:13px">Raj</span></span></p><hr class="sig">RxThu, 02 Jul 2009 14:15:53 Z2009-07-02T14:15:53Zhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/94b455b9-488b-457a-a3a3-13c87e02cabe#fca823f8-735a-4d87-b63e-51cb8aaed03fhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/94b455b9-488b-457a-a3a3-13c87e02cabe#fca823f8-735a-4d87-b63e-51cb8aaed03fLars Wilhelmsenhttp://social.msdn.microsoft.com/Profile/en-US/?user=Lars%20WilhelmsenCannot provide access to users behind internet proxy server - wshttp endpointHi,<br/> <br/>  Could you please elaborate a bit more on the exceptions / behavior you are experiencing?<br/> <br/>  --larsw<hr class="sig">Lars Wilhelmsen | Senior Consultant | <a href="http://www.miles.no/">Miles</a>, Norway | <a href="https://mvp.support.microsoft.com/profile/Lars">Connected Systems MVP</a> | <a href="http://larswilhelmsen.com/">http://larswilhelmsen.com/</a>Fri, 03 Jul 2009 20:52:11 Z2009-07-03T20:52:11Zhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/94b455b9-488b-457a-a3a3-13c87e02cabe#c6d10d6d-20bd-4aaf-a4d1-e63e3b7109efhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/94b455b9-488b-457a-a3a3-13c87e02cabe#c6d10d6d-20bd-4aaf-a4d1-e63e3b7109efNordine Ben Bachirhttp://social.msdn.microsoft.com/Profile/en-US/?user=Nordine%20Ben%20BachirCannot provide access to users behind internet proxy server - wshttp endpoint<p>You can specify the proxy address manually if you need to:<br/><span style="font-size:x-small"><span style="color:#0000ff">&lt;system.net&gt;<br/>      &lt;defaultProxy useDefaultCredentials=&quot;true&quot; &gt;<br/>         &lt;proxy autoDetect=&quot;False&quot; usesystemdefault=&quot;False&quot; bypassonlocal=&quot;true&quot; proxyaddress=&quot;<a href="http://gateway:8080">http://gateway:8080</a>&quot;  /&gt;<br/>      &lt;/defaultProxy&gt;<br/> &lt;/system.net&gt;</span></span><span style="font-size:x-small"></span></p><hr class="sig">Nordine Ben BachirFri, 03 Jul 2009 21:23:53 Z2009-07-03T21:23:53Zhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/94b455b9-488b-457a-a3a3-13c87e02cabe#059b0a68-ab51-46cf-ab67-767177c07795http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/94b455b9-488b-457a-a3a3-13c87e02cabe#059b0a68-ab51-46cf-ab67-767177c07795Rxrahttp://social.msdn.microsoft.com/Profile/en-US/?user=RxraCannot provide access to users behind internet proxy server - wshttp endpointHi Larsw,<br/> One of my client has a problem with synchronizing with the server and the error is as below:<br/>  - Exception has been thrown by the target of an invocation.<br/> System.ServiceModel.ProtocolException: The remote server returned an unexpected response: (407) Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.  ). ---&gt; System.Net.WebException: The remote server returned an error: (407) Proxy Authentication Required.<br/>    at System.Net.HttpWebRequest.GetResponse()<br/>    at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)<br/>    --- End of inner exception stack trace ---<br/> <br/> Their internet is behind a proxy , so I have to provide a proxy config in my windows application.<br/> <br/> I dont have much knowledge in WCF security.<br/> <br/> Thks,<br/> Raj<br/> <br/><hr class="sig">RxMon, 06 Jul 2009 20:50:26 Z2009-07-06T20:50:26Zhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/94b455b9-488b-457a-a3a3-13c87e02cabe#34266a6e-807f-421a-a478-cb26d3dfdbechttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/94b455b9-488b-457a-a3a3-13c87e02cabe#34266a6e-807f-421a-a478-cb26d3dfdbecRxrahttp://social.msdn.microsoft.com/Profile/en-US/?user=RxraCannot provide access to users behind internet proxy server - wshttp endpointHi Nordine,<br/> I am trying out as you said, and providing client credentials <br/> <pre lang="x-c#">ServiceReference.RxDataCacheSyncContractClient _cc = new RxClient.ServiceReference.RxDataCacheSyncContractClient(); _cc.ClientCredentials.Windows.ClientCredential = new System.Net.NetworkCredential(System.Configuration.ConfigurationSettings.AppSettings[&quot;ProxyUser&quot;], System.Configuration.ConfigurationSettings.AppSettings[&quot;ProxyPassword&quot;]); this.RemoteProvider = new Microsoft.Synchronization.Data.ServerSyncProviderProxy(_cc);</pre> So far didnt work, still trying out.<br/> <br/> Thks,<br/> Raj<br/><hr class="sig">RxMon, 06 Jul 2009 20:56:29 Z2009-07-06T20:56:29Zhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/94b455b9-488b-457a-a3a3-13c87e02cabe#b88bf208-9708-46a2-99ed-596831a5b831http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/94b455b9-488b-457a-a3a3-13c87e02cabe#b88bf208-9708-46a2-99ed-596831a5b831Steven Cheng - MSFThttp://social.msdn.microsoft.com/Profile/en-US/?user=Steven%20Cheng%20-%20MSFTCannot provide access to users behind internet proxy server - wshttp endpoint<p>Hi Rxra,<br/><br/>The error message you provided did indicate that those certain clients are behind are firewall proxy and the proxy requires authentication against the client. I've posted a former article which mentioned how to supply dedicated credentials for proxy authentiation in WCF client:<br/><br/>#[WCF]How to supply dedicated credentials for webproxy authentication in WCF client <br/><a href="http://blogs.msdn.com/stcheng/archive/2008/12/03/wcf-how-to-supply-dedicated-credentials-for-webproxy-authentication.aspx">http://blogs.msdn.com/stcheng/archive/2008/12/03/wcf-how-to-supply-dedicated-credentials-for-webproxy-authentication.aspx</a></p> <p>The idea here is utilize the WebRequest.DefaultProxy to supply your info. Generally, if proxy server doesn't require authentication, you can use app.config to supply proxy address info.<br/><br/><br/><br/></p><hr class="sig">Please remember to mark the replies as answers if they help and unmark them if they provide no help.Wed, 08 Jul 2009 08:23:11 Z2009-07-08T08:23:11Zhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/94b455b9-488b-457a-a3a3-13c87e02cabe#82e7294c-e34d-4e97-bfef-cf57323c65f9http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/94b455b9-488b-457a-a3a3-13c87e02cabe#82e7294c-e34d-4e97-bfef-cf57323c65f9Rxrahttp://social.msdn.microsoft.com/Profile/en-US/?user=RxraCannot provide access to users behind internet proxy server - wshttp endpointThanks a lot Steven. <div>I was able to fix it today.</div> <div><br/></div><hr class="sig">RxFri, 10 Jul 2009 16:04:52 Z2009-07-10T16:04:52Z