【发布时间】:2011-03-30 12:56:30
【问题描述】:
我有一个与 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 服务的可能原因有哪些?我该如何调试呢?
edit 仍然没有答案——我可以提供任何其他信息来帮助解决这个问题吗?
【问题讨论】:
标签: silverlight-4.0 https securityexception clientaccesspolicy.xml