If we need to call web service across sites in Silverlight, this problem may occur: by default, Silverlight does not allow you to do so. So how can we solve this problem? Please refer to the following section in Tim.Article
Http://timheuer.com/blog/archive/2008/04/06/silverlight-cross-domain-policy-file-snippet-intellisense.aspx
In short, Silverlight does not support cross-site calls, but checks a file first.Clientaccesspolicy. xmlIf the file cannot be found, find another file.Crossdomain. XML,If you cannot find it, an error is reported.
This problem can be easily identified through the monitoring tool.
If you are starting to get into integrating web servicesSilverlight, You'll notice that you have to have a cross domain policy file in place onTargetServer, that is to say, the server hosting the service you want to implement. there are some public web services (Flickr, YouTube, Digg, etc .) that already have these files in place for flash, but implement in a slightly different way.
When calling a cross-domain service, Silverlight will check for the existenceClientaccesspolicy. xmlFirst. This is the format defined by Silverlight and provides a pretty flexible way to define who can access what services. If not found, it will then default to lookCrossdomain. xml, Which is the file format implemented for Adobe Flash. It is important to note that this file will also still work for most public web services.