I have a Silverlight application that speaks to the HTTPS web service.
It works fine on most machines, but on some machines it fails consistently.
On computers on which this fails, I get a SecurityException when I execute a WebClient request for the HTTPS web service. SecurityException itself does not give me any clues as to why it really fails:
WebClient client = ...;
client.DownloadStringCompleted += OnCompleted;
client.DownloadStringAsyc("https://somewebservice/foo");
...
void OnCompleted(object sender, DownloadStringCompletedEventArgs e)
{
Console.WriteLine(e.Error);
}
What are the possible reasons Silverlight cannot call the HTTPS web service? How can I debug this?
edit There are no answers yet - is there any additional information I can give to help solve this problem?