views:

246

answers:

1

I have made a silverlight application and I have hosted it on my localhost IIS. and the URL of this application is http://localhost/default.aspx I have developed and other xml-rpc server which is also running on same machine and its address is https://localhost:8000, I am having problem in calling the remote functions from the url https://localhost:8000 I want to know that where should I place the clientaccesspolicy.xml and what should be the contents of that xml file specifically for this case?

+1  A: 

You would need to put a clientaccesspolicy.xml file in the root folder of the web site at port 8000.

It could be something like this (although you should decide what the proper security would be best for you scenario):

<?xml version=""1.0"" encoding=""utf-8""?>
<access-policy>
    <cross-domain-access>
        <policy>
            <allow-from http-request-headers=""*"">
                <domain uri=""*""/>
            </allow-from>
            <grant-to>
                <resource path=""/"" include-subpaths="" true""/>
            </grant-to>
        </policy>
    </cross-domain-access>
</access-policy>
WPCoder
thanks for your help.
Ummar