Proxy exceptions in C #

We have a problem with our project. We are making web services with C # and a client for web services. In our office, the client is working fine, but in production we have a problem with the proxy. The proxy is configured in Windows Internet Properties. The client should connect to http: \ aaa.com and http: \ aaa.com is a proxy exception. But the client won't connect. In the proxy log, we can see that the client is browsing the proxy and ignoring proxy exceptions. Why doesn't the client rule out internet properties?

EDIT: Sorry for the mistake, proxy config * .aaa.com Using Intenet Explorer I can access web services

+1


source to share


1 answer


I can't remember what settings .NET uses (I suspect WinHTTP), but one simple thing to try (on the command line):

proxycfg -u

      



Imports Internet Explorer proxy settings into WinHTTP.

Alternatively, you can also configure proxy settings via config (app.config / web.config / machine.config / etc) using configuration/system.net/defaultProxy

node. Personally, I will try to avoid this option (config) - it just increases the amount of things you need to remember in order to maintain!

+1


source







All Articles