I have created a Silverlight 2 appliction, that uses a WCF service.
The service is located in a local folder (not IIS) and works fine with a Winforms test.
when I try to call the service, it returns with an error: ” no pocily for cross domain”.
I’ve tryed to add clientaccesspolicy.xml and crossdomain.xml to:
the wcf project folder
the iis wwwroot
the local drive root E:\
but nothing takes any affect
where should i put them?
As you say you don’t have the service running under IIS I am going to make some assumptions
The silverlight app and the wcf service are hosted in separate urls, the app on file://example.html or http://localhost if you’ve published it to IIS and the wcf service on http://localhost:1234. This raises cross domain access problems because the port numbers are different, or you are loading the silverlight app from a file:// URI and you’re self hosting the WCF service. If you are self hosting the WCF service you cannot solve this because they require either a clientaccesspolicy.xml file or a crossdomain.xml file allowing access to the services from your silverlight URL, however there is no way to serve an XML from the root of the self hosting WCF server.