Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
2.60/5 (2 votes)
See more:
Hello every one,

I am running a batch file in wcf service through silverlight button click event.Getting the following exception. I have googled for many sites not getting the proper solution. Even I placed clientaccesspolicy.xml file in root directry as well as in solution folder. What was the problem for this exception.

Exception:

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


Thanks in advance......
BR
Posted
Updated 19-Mar-13 20:38pm
v2

1 solution

 
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