akasonny wrote:when entering: http://<mywebpage> i had the same problem. The data loading box just stayed forever.
However, when I entered
http://www. it worked each and every time.
Thanks - I think I understand the reason for this. The URL of the realtime.txt file that you put in the XML configuration needs to match the URL that you use to access the application (by 'match' I mean it needs to have the same domain). By default, there is a security restriction in Silverlight that prevents applications accessing data from sites other than the one hosting the application. It appears that the presence or otherwise of a leading 'www.' is included in the check.
You can override the security check, as I have done on sanday.org.uk, by placing a file called clientaccesspolicy.xml in the
root of your web space, containing the following:
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<access-policy>
<cross-domain-access>
<policy>
<allow-from>
<domain uri="*"/>
</allow-from>
<grant-to>
<resource path="/" include-subpaths="true"/>
</grant-to>
</policy>
</cross-domain-access>
</access-policy>
Instead of the <domain uri="*"/> line, you can if you wish restrict access just to specific domains, e.g:
Code: Select all
<allow-from>
<domain uri="http://sanday.org.uk/"/>
<domain uri="http://www.sanday.org.uk/"/>
</allow-from>