我有一个与 HTTPS 网络服务对话的 Silverlight 应用程序。
在大多数机器上它工作正常,但是,在某些机器上它总是失败。
在失败的机器上,我在向 HTTPS Web 服务发出 WebClient 请求时收到 SecurityException。SecurityException 本身并没有给我任何关于它为什么真的失败的线索:
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"
}
Silverlight 应用程序无法调用 HTTPS Web 服务的可能原因有哪些?我该如何调试呢?
编辑仍然没有答案 - 我可以提供任何其他信息来帮助解决这个问题吗?