Silverlight app to ASP webservice (reference) gives communicationexception

Domidgids

New Member
I am trying to set up a connection between my silverlight app and my webservice in asp.net.It's a development environment using Visual studio 2012 and Silverlight 5 using IIS.I've seen millions of posts about adding the crossdomain & clientaccesspolicy xml files to the root of my webservice project which I did.Things i've already checked: - crossdomain & clientaccesspolicy files - correct url in reference - webmethod is workingBut still i'm getting this error message when running my silverlight project:\[code\]An error occurred while trying to make a request to URI 'http://localhost:5423/Contacts.asmx'.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.\[/code\]
 
Back
Top