I have a silverlight application which has some calls to a WCF service. Both silverlight and WCF are located on the localhost. when I run the silverlight application but it fails in the calls to WCF in communication exception. Iv'e understand fron the web that this can be because the WCF and silverlight are not running on the same port and I have to add clientaccesspolicy.xml file. but I didn't understand what is the "domain root" I have to locate there the xml. can you please inform me the path I have to locate the xml there (on localhost)
thanks!
I just did this yesterday with an IIS hosted WCF service. I put the XML file in c:\inetpub\wwwroot(I think. It is on my machine at work).
If you are not IIS hosted, it might be different. When I was first developing my service, I did so as a self hosted exe. In that case, I did not use an XML file. Instead, I implemented another "service" in my self-hosting exe project. The service automatically created the XML file. I don't have the details handy. I can post more info on Monday if you have not solved your problem by then.
In the meantime, see this link:
Where to place ClientAccessPolicy.xml for Local WCF Service?
Or this one:
How can I get my WCF service's client access policy operation to be accessible from the root?