We help IT Professionals succeed at work.

Silverlight - Cannot Access Cross Domain Policy File

DanOLorenz
DanOLorenz asked
on
I am trying to call a WCF Service.  The Cross domain file is located in the root directory of the project and WCF Service along with the clientaccesspolicy file.

Error Message:
An error occurred while trying to make a request to URI 'http://localhost:5669/Service1.svc'. This could be due to attempting to access a service in a cross-domain way without a proper cross-domain policy in place, or a policy that is unsuitable for SOAP services. You may need to contact the owner of the service to publish a cross-domain policy file and to ensure it allows SOAP-related HTTP headers to be sent. This error may also be caused by using internal types in the web service proxy without using the InternalsVisibleToAttribute attribute. Please see the inner exception for more details.

Let me know if you can help me get this working.

Thanks,

Dan
Comment
Watch Question

Save the crossdomain.xml file to the root of the domain where the service is hosted. If, for example, the service is hosted in http://fabrikam.com, then the file must be located at http://fabrikam.com/crossdomain.xml.