I Have developed WCF service in one solution (which is having three .svc service) and Silverlight application in another solution which is consuming WCF service. And I have added ClientAcessPolicy.xml in WCF service application.
Here is the WCF service application solution.
The client access policy file.
When I am running the WCF service in local developement environment it is running in http://localhost:1690/CustomerService.svc
And the silverlight application is running in http://localhost:3028/Default.aspx. But when silverlight application is trying to access WCF service I am getting below error:
"An error occurred while trying to make a request to URI 'http://localhost:1690/CustomerService.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. This error may also be caused by using internal types in the web service proxy without using the InternalsVisibleToAttribute attribute. Please see the inner exception for more details."
Do I have to add any other setting other than just adding ClientAccessPlocy.xml in wcf service app.?
Can some one help me on this issue?
Thanks,
Pradeep
Replies
Know the answer? Post it — somebody with the same question will find it here.