Proxy Authentication Required exception

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Dear all:
I'm facing proxy authentication problem on pocket pc 2003 using .net compact
framework. Following code work fine on desktop, but it throws "proxy
Authentication Required" exception on "Pocket PC 2003". The PocketPC IE works
well.

// --------- Code Start -----------------
WebProxy proxyObject = new WebProxy("10.100.101.6",8080);
proxyObject.Credentials=new NetworkCredential(username,password);
WebRequest req = WebRequest.Create(url);
req.Proxy=proxyObject;
MessageBox.Show("Start get");
result = req.GetResponse();
MessageBox.Show("Success");
// --------- end -----------------

the system throw this exception:
System.Net.WebException:The remote server returned an error: (407) Proxy
Authentication Required.
more error information:
?((HttpWebResponse)webExcp.Response).StatusCode
ProxyAuthenticationRequired
?((HttpWebResponse)webExcp.Response).StatusDescription
"Proxy Authentication Required ( The ISA Server requires authorization to
fulfill the request. Access to the Web Proxy service is denied. )"
 
I don't think that .NET CF v1.0 SP 2 supports NTLM authentication. If the
proxy server requires that, that could be the problem.
 
Dear Mike,
Maybe our Company's ISA Server using NTLM authentication,because the java
client also can't work. I will try using vs2005.

“Mikeâ€ç¼–写:
 
Back
Top