I have a WCF service which is placed on a remote server. The domain of the server is different then the domain of my local system. I have place the clientaccesspolicy.xml and crossdomain.xml files on the root directory of server which hosts the service.
when i send a call to the service on server from my silverlight application, i receive following error:-
An error occurred while trying to make a request to URI 'http://192.168.25.226/AP.FileManager.Service/SPConnector.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.
1. crossdomain.xml and clientaccesspolicy.xml files are placed in the website root directory (in wwwroot) on server.
2. I am able to access service in browser so the service is working on the server.
3. i am initializing service in code like
binding = new System.ServiceModel.BasicHttpBinding();
SPConnectorClient service =