Re: Exceptions during a HTTP post using WebClient
From: Matjaz Ladava (matjaz_at__nospam_ladava.com)
Date: 06/18/03
- Next message: Matjaz Ladava: "Re: Credential Store for the FormsAuthenticationModule"
- Previous message: Shawn Farkas [MS]: "Re: Authorization Manager and .NET roles"
- In reply to: john: "Exceptions during a HTTP post using WebClient"
- Next in thread: john: "Re: Exceptions during a HTTP post using WebClient"
- Reply: john: "Re: Exceptions during a HTTP post using WebClient"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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) matjaz@ladava.com http://ladava.com "john" <johnwww@hotmail.com> wrote in message news:0d7601c33598$11e61ba0$a101280a@phx.gbl... > 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
- Next message: Matjaz Ladava: "Re: Credential Store for the FormsAuthenticationModule"
- Previous message: Shawn Farkas [MS]: "Re: Authorization Manager and .NET roles"
- In reply to: john: "Exceptions during a HTTP post using WebClient"
- Next in thread: john: "Re: Exceptions during a HTTP post using WebClient"
- Reply: john: "Re: Exceptions during a HTTP post using WebClient"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|