For some reason my crossdomain.xml
is never accepted by Silverlight and I'm getting the SecurityException
everytime. I'm using SL4 and HTTPS. The server is offline to begin with, the first request fails. After 60 seconds, the client again requests for the crossdomain.xml
, I return the file, as given below, but I get the security exception. I'm using Fiddler to return the file.
Also interesting is that it works with clientaccesspolicy.xml
but that is requested only the first time and all subsequent requests only ask for crossdomain.xml
. The file is as below
<?xml version="1.0" encoding="utf-8"?>
<access-policy>
<cross-domain-access>
<policy>
<allow-from>
<domain uri="*"/>
</allow-from>
</policy>
</cross-domain-access>
</access-policy>
Take a look to this post from SO: SecurityError when calling a HTTPS-WCF Service from Silverlight 4