Thanks, Roy. In the following codes from your web page, why do you need
myCache? What does "Negotiate" mean here?
========
private static void SetCredentials(WebProxy proxy,string user,string
password,string domain,string uri)
{
CredentialCache myCache = new CredentialCache();
NetworkCredential myCred =null;
if(domain==null || domain.Length==0)
{ myCred = new NetworkCredential(user,password);}
else
{myCred = new NetworkCredential(user,password,domain);}
myCache.Add(new Uri(uri), "Negotiate", myCred);
proxy.Credentials = myCred;
}
=====
Thanks,
Dennis
Roy Osherove said:
I had the same problem, so I wrote a helper class that helps you do
exactly that.
Yes, it uses the WebProxy class, but it makes the process easier.
check it out here.
http://weblogs.asp.net/rosherove/posts/34670.aspx
Regards,
Roy Osherove
www.iserializable.com
authentication things" are configured to block it, then you can't do much
(that's their purpose!).Internet. When user's internet port has firewall/proxy authentication
things, my app cannot pass it and go to Internet. How can I make it work?