Hey all,
I am working with another coder on a website that is accessing SQL Server (2008 Express) through some web services he created (involving mostly LINQ to SQL), and the UI is in Silverlight. I've been working on another part of the system, but just got his latest code, and am trying to run it on my machine, but am getting an error.
It is a CommunicationException on a line in the reference.cs file, the EndXXX method of the web service:
// This is for a Ping method we created just to trouble shoot- it behaves the same.
public string EndPing(System.IAsyncResult result) {
object[] _args = new object[0];
// Next line throws Communication Exception
string _result = ((string)(base.EndInvoke("Ping", _args, result)));
return _result;
}
The error message is:
"An error occurred while trying to make a request to URI 'http://localhost:1233/SummitService.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. Please see the inner exception for more details."
The whole stack is on my local machine, so I shouldn't be needing to make any cross-domain calls. We looked through all the configuration code we could find (web.config, ServiceReferences.ClientConfig), to change all the references to his machine to mine. We're both pretty new to all these technologies, so we've run to the end of our knowledge.
Does this ring any bells for anyone?