Proxy Authentication Required exception

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. )"
 
M

Mike

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.
 
G

Guest

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â€ç¼–写:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top