Is it possbile to use the windows login credential for proxy authentication using C#.
I have a facebook application, which calls the facebook methods. During every facebook call, it gives an error “407: proxy authentication required”
The following code will allow the user to set the proxy :-
WebProxy oWebProxy = new System.Net.WebProxy(ProxyServer, ProxyPort);
oWebProxy.Credentials = new NetworkCredential(ProxyUser,ProxyPassword,ProxyDomain);
oserv.Proxy = oWebProxy;
oserv.Credentials = new NetworkCredential(theusername, thepassword);
But, is there any other way of doing the same thing without hardcoding my company’s login credentials.
You can use :
If it still does not solve your problem, then please refer to the site : http://support.microsoft.com/kb/813834