Hi I have created a dnn module that contains a silverlight project, the silverlight project reqiores access to a WPF web service that is part of another application. I have added the service to the silverlight application however when I load it into my DNN portal I get a message displaying 'error on page', when I try and debug the silverlight project in visula studio I get an error:
An error occurred while trying to make a request to URI 'http://josh-pc/MaxSilver.Services/DashboardInfo.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. Please see the inner exception for more details.
So I read around and found I need a cliantaccesspolicy.xml file in the web root so for my machine runing the portal nad the services on localhost that is C:\inetpub\wwwroot, so I copied the example one from MSDN site that allows 'The following configuration allows access from any other domain to all resources on the current domain.' The file looks like
<?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>
I also added the crossdomain.xml mentioned
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-http-request-headers-from domain="*" headers="*"/>
</cross-domain-policy>
But even with these files I still get the error stated, I can browse to the service being requested but my silverlight app just cant get to it, and adding the service to the dnn website instead of being a seperate application is not an option for me, can anyone please help me?