Export (0) Print
Expand All

Warning: Web services at '<URL>' might not be accessible due to cross-domain restrictions

Silverlight

A crossdomain.xml file has been detected at the specified URL, but the required attribute for cross-domain access was not found.

If a Silverlight 5 application needs to access a service in another domain, the service must explicitly opt in to enable cross-domain access. By opting in, a service affirms that the operations it exposes can safely be invoked by a Silverlight 5 control, without potentially damaging consequences to the data that the service stores.

Note Note:

To correct this error, you must have permissions to modify files at the root of the domain in which the service is hosted. You should also understand the security implications of enabling cross-domain access to the service.

To correct this error

  1. Create a crossdomain.xml file that contains the following configuration. The file must be configured to enable access to the service from any other domain, or it is not recognized by Silverlight.

    <?xml version="1.0"?>
    <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
      <allow-access-from domain="*" />
    </cross-domain-policy>
    
  2. Save the crossdomain.xml file to the root of the domain in which the service is hosted. If, for example, the service is hosted on http://fabrikam.com, the file must be located at http://fabrikam.com/crossdomain.xml.

  3. Test that the service is enabled by invoking it from your application.

Community Additions

ADD
Show:
© 2014 Microsoft