I'm getting this error when I call a web service:
"The remote server returned an error: (407) Proxy Authentication Required".
I get the general idea and I can get the code to work by adding
myProxy.Credentials = NetworkCredential("user", "password", "domain");
or by using DefaultCredentials in code. My problem is that the call to the web service works in production without this.
It seems like there is a non code solution involving Machine.config, but what is it? At the moment I can't get to the production box's machine.config file to see what that looks like. I tried updating my machine.config as follows, but I still get the 407 error.
<system.net> <defaultProxy enabled="true" useDefaultCredentials="true"> <bypasslist> <clear /> </bypasslist> <proxy proxyaddress="myproxy:9000" usesystemdefault="false" bypassonlocal="true" autoDetect="False" /> </defaultProxy> </system.net>
This error is related to proxy authentication. To view or change your proxy settings in Google Ads Editor, select Tools > Settings (Windows) or Google Ads Editor > Preferences (Mac). Was this helpful?
The HTTP 407 Proxy Authentication Required client error status response code indicates that the request has not been applied because it lacks valid authentication credentials for a proxy server that is between the browser and the server that can access the requested resource.
What Does Proxy Authentication Required Mean? The 407 Proxy Authentication Required error code indicates that the server cannot complete the request because the client lacks appropriate authentication credentials for a proxy server that intercepts the request between the client and server.
Just add this to config
<system.net> <defaultProxy useDefaultCredentials="true" > </defaultProxy> </system.net>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With