Call to external webservice via a proxy returns an unknown host error

Call to external webservice via a proxy returns an unknown host error

  
Hi

We developed an app in the cloud environment where a call to an external webservice works fine.  The app has been downloaded and deployed in our on premises DEV environment where we have a firewall in place.  We added the proxy server to IE and assume that IIS would pick up the proxy settings from IIS.
When calling the webservice from the app, we receive a hostname cannot be resolved error.

Where do we need to configure the proxy ?  We're using a Windows 2008 server with IIS






Hi Bilal,

You cannot assume that the IIS will use the proxy settings that you set in IE. (especially since the IIS will not run with the user where your IE prefererences will be set).

The correct way to set the Proxy for a Web Reference is using the EnhancedWebReferences extension to set the proxy before the call is made.



Regards,
João Rosado
Thanks João

We resolved the issue by changing the defaultproxy settings in the .NET Web.config file ......works great