All -

I'm using C#'s `WebClient` class to gain access to a resource on a remote server via https. The resource I am interested in is a file on the remote server. I'm using the following call to gain access to the file:

```

WebClient client = new WebClient();
client.DownloadData("https://someuri/file.txt");

```

When calling the above code I get the an `System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.` I have manually visted the site via IE and added the cert. as a trusted issuer and can browse to the resource without an issue in IE. Does C# not use the standard windows certificate store ? or do I have to write my own `CertificatePolicy`?. I'd really like to use the built in authentication algorithms.

Thanks in advance.