Answered by:
Proxy authentication required for wcftestclient

Question
-
User-1350042179 posted
Hi
I try to connect with a wcf method in another network..
I use a server proxy setting of windows...
But wcftestclient shows the error:
Proxy authentication required for wcftestclient
I have permissions, because I can connect with wcfstorm configuring the proxy in wfcstorm
Friday, February 10, 2017 7:35 AM
Answers
-
User-2057865890 posted
Hi Neoaguil17,
You could do it from configuration
<system.net> <defaultProxy useDefaultCredentials="true"> <proxy proxyaddress="proxyAddress" usesystemdefault="True"/> </defaultProxy> </system.net>
or code
var proxyServerAddress = "address"; var proxyServerPort = "port"; // Get proxy with default credentials WebProxy proxy =new WebProxy(proxyServerAddress, proxyServerPort); proxy.Credentials = System.Net.CredentialCache.DefaultCredentials();
reference:
https://blogs.infosupport.com/configuring-a-proxy-server-for-wcf/
Best Regards,
Chris
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, February 13, 2017 6:16 AM
All replies
-
User475983607 posted
Clearly, the proxy (10.10.10.10) requires proper credentials. You'll need to contact your system admin for assistance. This error has nothing to so with WCF.
Friday, February 10, 2017 12:36 PM -
User-1350042179 posted
Hi
I can not connect with the service using wcftestclient, but I can connect using wcfstorm.... You can see in the image that I wrote the server proxy..
In other words the problem is with wcftestclient...
Saturday, February 11, 2017 4:59 AM -
User475983607 posted
neoaguil17
Hi
I can not connect with the service using wcftestclient, but I can connect using wcfstorm.... You can see in the image that I wrote the server proxy..
In other words the problem is with wcftestclient...
Have you tried setting ...
<system.net> <defaultProxy useDefaultCredentials="true" /> </system.net>
in the web config?
Saturday, February 11, 2017 12:22 PM -
User-1350042179 posted
Hi
I utilized that setting...
<system.net> <defaultProxy useDefaultCredentials="true" /> </system.net>
But I recieved the same error.
Saturday, February 11, 2017 5:27 PM -
User-2057865890 posted
Hi Neoaguil17,
You could do it from configuration
<system.net> <defaultProxy useDefaultCredentials="true"> <proxy proxyaddress="proxyAddress" usesystemdefault="True"/> </defaultProxy> </system.net>
or code
var proxyServerAddress = "address"; var proxyServerPort = "port"; // Get proxy with default credentials WebProxy proxy =new WebProxy(proxyServerAddress, proxyServerPort); proxy.Credentials = System.Net.CredentialCache.DefaultCredentials();
reference:
https://blogs.infosupport.com/configuring-a-proxy-server-for-wcf/
Best Regards,
Chris
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, February 13, 2017 6:16 AM