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