By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,984 Members | 1,421 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,984 IT Pros & Developers. It's quick & easy.

proxy authentication failed 407 error

P: n/a
WebRequest req = WebRequest.Create(@"");
req.Method = "GET";
WebProxy p = new WebProxy(@"http://ganymede:8090", false);
p.Credentials = CredentialCache.DefaultCredentials;
req.PreAuthenticate = true;
req.Proxy = p;
req.Credentials = CredentialCache.DefaultCredentials;
WebResponse res=req.GetResponse();
StreamReader sr = new StreamReader(res.GetResponseStream());
while (sr.ReadLine() != null)

catch (Exception e)

i use a proxy server. so to acees the web content i set the proxy property
of request object.while running tha above code i get a error the request was
aborted/cancelled-invalid length for base 64 array.
if i comment this lin p.Credentials =
CredentialCache.DefaultCredentials;then i get a error proxy authentication
required 407. any help will be appreciated.

Jun 10 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.