From: Santel on
Hi,

If I use the below code, I am receiving 'unauthorized' error in
DownloadData() method.

using (WebClient blockingClient = new WebClient())
{
byte[] atomBytes = blockingClient.DownloadData("http://
www.myserver.com/download/test.atom");

}

Can anyone please suggest! Do I have to do anything with server IIS
wrt atom file?
From: "Mr. Arnold" MR. on

"Santel" <santel_helvis(a)sify.com> wrote in message
news:4af99240-51a0-4bd7-a429-7382d8adf083(a)t12g2000prg.googlegroups.com...
> Hi,
>
> If I use the below code, I am receiving 'unauthorized' error in
> DownloadData() method.
>
> using (WebClient blockingClient = new WebClient())
> {
> byte[] atomBytes = blockingClient.DownloadData("http://
> www.myserver.com/download/test.atom");
>
> }
>
> Can anyone please suggest! Do I have to do anything with server IIS
> wrt atom file?

Yes, you need to set the proper security credentials for IIS for the virtual
directory, which is most likely Anonymous.

MS.Public.inetserver.iis