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.