1
Answer

Connecting to Web Services via Proxy

Ian Waters

Ian Waters

15y
6.5k
1


I have an Access application (don't ask) which uses a .Net component to connect to our web service.  Some of the people trying to use the program are on corporate networks and have proxies that require authroisation.  I have modified the component to specify the address and port number of the proxy and have tried to get it to pass through the Windows credentials, see code:

WebProxy prox = new System.Net.WebProxy(_proxy);
prox.Credentials = CredentialCache.DefaultCredentials;
service.Proxy = proxy;

It connects to the proxy ok but is still showing as an annonymous connection.  Any idea how I get it to pass through the credentials of the current logged on user?

Many thanks

Answers (1)