我有一个clientaccesspolicy.xml
允许一切的。
我使用 javascript 从同一服务器的 aspx 中弹出一个窗口。
aspx 调用 Web 服务但失败。
silverlight System.Security.SecurityException:安全错误。这可能是由于在没有适当的跨域策略或不适合 SOAP 服务的策略的情况下尝试以跨域方式访问服务。
<?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>
任何想法?