AG_E_Network_Error Silverlight video
I 've just been trying to build a silverlight player for
SQLBits and have been hitting my head against a wall due to getting error
AG_E_NETWORK_ERROR
How annoying. Nothing more just that.
I know the URL is fine so what is the problem.
After doing some tracing I found requests in the log of the website I was
getting the file from as follows
2009-12-03 00:56:00 fe80::e9631 GET /clientaccesspolicy.xml - 80 -
2009-12-03 00:56:00 fe80::e963: GET /crossdomain.xml - 80 -
I don't have either. Looking at these I find that they are needed by
Silverlight for security checking. As I don't have either it bombs out
So to solve the problem create a file called clientaccesspolicy.xml in the
route of the website with the content and use the following
<?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>
This gives full access. I AM SURE YOU SHOULD MAKE IT MORE RESTRICTIVE but its
very late and I'm going to bed.
Anyway if you are encountering AG_E_NETWORK_ERROR and you are trying to get
content from another website you will need one of these files.