Exception When WCF Service Called [Resolved]

Posted by kgovindarao523-21772 under Silverlight on 2/5/2014 | Points: 10 | Views : 2131 | Status : [Member] [MVP] | Replies : 3
Hi,

I Created A Silverlight solution, and then i Added a WCF Service to my Solution ,in VS2010.
Now, When I Call WCF service inside Silver light application, it throws exception, saying that

"An error occurred while trying to make a request to URI . 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 to Resolve this?

Thank you,
Govind



Responses

Posted by: Sravan661 on: 2/5/2014 [Member] Bronze | Points: 50

Up
0
Down

Resolved
Hi,
Please add them in Webservice solution
Hope this helps you.

sravan

kgovindarao523-21772, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: kgovindarao523-21772 on: 2/5/2014 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Hi,
I Added these Xml files in Silverlight.web solution, but i am getting the same error.


Thank you,
Govind

kgovindarao523-21772, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response