locked
Proxy authentication required for wcftestclient RRS feed

  • 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

    test

    Friday, February 10, 2017 7:35 AM

Answers

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?

    http://stackoverflow.com/questions/8723545/wcf-client-407-proxy-authentication-required-while-running-webservice

    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:

    http://blogs.msmvps.com/paulomorgado/2009/01/12/setting-a-web-proxy-through-configuration-in-net-applications/

    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