Security Silverlight安全例外
在Visual Studio 2013下的Windows 8.1中运行Silverlight应用程序时,出现以下错误Security Silverlight安全例外,security,silverlight,Security,Silverlight,在Visual Studio 2013下的Windows 8.1中运行Silverlight应用程序时,出现以下错误 Stack Trace: at System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult) at System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClassa.<En
Stack Trace:
at System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)
at System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClassa.<EndGetResponse>b__9(Object sendState)
at System.Net.Browser.AsyncHelper.<>c__DisplayClass4.<BeginOnUI>b__0(Object sendState)
我创建了一个clientaccesspolicy.xml文件,其中包含以下内容。我仍然得到相同的错误:
<?xml version="1.0" encoding="utf-8"?>
<access-policy>
<cross-domain-access>
<policy>
<allow-from http-request-headers="*">
<domain uri="*"/>
</allow-from>
<grant-to>
<resource path="/" include-subpaths="true"/>
</grant-to>
</policy>
</cross-domain-access>
</access-policy>
我需要添加更多的设置,以避免出现安全错误。我发现我没有将clientaccesspolicy.xml文件放在正确的文件夹中,这是导致错误的原因。请将代码添加到问题中好吗?