Silverlight can't talk to HTTPS web service?

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); // Prints SecurityException. Message = "Security 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?

+3
1

. :

Silverlight foo.bar.com, - IE ( ).

- foo.ourcompany.com, IE Intranet Zone ( ).

Silverlight - . . MSDN URL- Silverlight. Internet- > Intranet , SL- SecurityException.

: Microsoft , SecurityException -. .

+3

Source: https://habr.com/ru/post/1759918/


All Articles