Click here to Skip to main content
15,867,488 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I have silverlight 5 application that it must use WCF service.
when a call one of methods of service I got this error


An error occurred while trying to make a request to URI 'http://localhost:1574/Service1.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.


How can I solve this problem.
Thanks.
Posted
Comments
Nikhil_S 2-May-12 4:52am    
Add Crossdomain.xml and ClientAccesspolicy.xml then check.If the problem Continues Please Type the Service name and check whether it's Working or not.

1 solution

If you took even 5 minutes to try using Google you would find the answer to your problem!!! All I did was google: cross domain deployment in wcf

Why must you people be so damn lazy?

here[^]is the article that will provide you the answer.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900