I realise this question has been asked 100 times, but i've looked through the other answers and can't find a solution that works for me. I have a SilverLight 4 project which contains a WCF service. every time i make a request to the service i get this error:
An error occurred while trying to make a request to URI 'http://localhost:54998/MyService.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.
I have read that when running locally, my project will not be using IIS therefore it is pointless adding the clientaccesspolicy.xml in the local host root would be pointless (i have added it anyway just in case). What do I need to do?
EDIT --- This is the inner exception i get
{System.Security.SecurityException: Security error. at System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult) at System.Net.Browser.BrowserHttpWebRequest.<>c_DisplayClass5.b_4(Object sendState) at System.Net.Browser.AsyncHelper.<>c_DisplayClass2.b_0(Object sendState)}
Thanks