I wrote WCF service and i also wrote ( in the same solution ) silverlight client. I trying to access to the WCF service from the silverlight client - and i get cross-domain exception.
this is happening only when i run the system on the server machine ( thru IIS 7.5 )
I tried to run the same system ( the wcf server & silverlight client ) on my local machine and its does not happened.
The exception:
An error occurred while trying to make a request to URI ‘http://localhost:4522/MyService’. 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.
I saw on the web that i need to add something like ICrossDomainService - but i don't know where i need to define them on my project ( on the silverlight project ? on the WCF server project ? )
Someone can help me please ?
Thanks.