Re: Exceptions during a HTTP post using WebClient
From: Matjaz Ladava (matjaz_at__nospam_ladava.com)
Date: Wed, 18 Jun 2003 20:54:19 +0200
You must understand, that when you do upload you are doing it in the context
of ASPNET account. So either you have wrong security settings on remote url,
or you cant resolve the name of the url.
What is the myurl value and what are permissions set on that folder (myurl).
Are you using impersonation ?
-- Regards Matjaz Ladava, MCSE (NT4 & 2000) firstname.lastname@example.org http://ladava.com "john" <email@example.com> wrote in message news:firstname.lastname@example.org... > hello, > > i have to request an ASP page from my machine. > So, i use webclient and UploadData for the HTTP request. > I specify a credential for the webClient object because > the site is setup with NTLM authentification : > > NetworkCredential vo_cre = new NetworkCredential > (user ,pwd,domain); > web = new WebClient (); > web.Credentials = vo_cre ; > web. UploadData(myurl,"POST",mydata); > > Sometimes, a WebException is thrown : > > NameResolutionFailure or ConnectFailure. > > What could be the causes of these exceptions ? > Thanks