1
Vote

Do you need a cross domain policy, I am getting an exception after the initial home page

description

System.ServiceModel.CommunicationException was unhandled by user code
Message=An error occurred while trying to make a request to URI 'http://localhost/HappyNet/Services/LoggingService.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.
StackTrace:
   at System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result)
   at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)
   at System.ServiceModel.ClientBase`1.ChannelBase`1.EndInvoke(String methodName, Object[] args, IAsyncResult result)
   at Soat.HappyNet.Silverlight.Modules.Logging.LoggingServiceReference.LoggingServiceClient.LoggingServiceClientChannel.EndWriteMessage(IAsyncResult result)
   at Soat.HappyNet.Silverlight.Modules.Logging.LoggingServiceReference.LoggingServiceClient.Soat.HappyNet.Silverlight.Modules.Logging.LoggingServiceReference.ILoggingService.EndWriteMessage(IAsyncResult result)
   at Soat.HappyNet.Silverlight.Modules.Logging.LoggingServiceReference.LoggingServiceClient.OnEndWriteMessage(IAsyncResult result)
   at System.ServiceModel.ClientBase`1.OnAsyncCallCompleted(IAsyncResult result)
InnerException: System.Security.SecurityException
   Message=""
   StackTrace:
        at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)
        at System.Net.Browser.ClientHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
        at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse(IAsyncResult result)
   InnerException: System.Security.SecurityException
        Message=Security error.
        StackTrace:
             at System.Net.Browser.ClientHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)
             at System.Net.Browser.ClientHttpWebRequest.<>c__DisplayClass5.<EndGetResponse>b__4(Object sendState)
             at System.Net.Browser.AsyncHelper.<>c__DisplayClass2.<BeginOnUI>b__0(Object sendState)
        InnerException:

comments

CyrilCathala wrote Jan 6, 2011 at 1:26 PM

I'll investigate the issue, that's weird. In localhost, you shouldn't need any cross domain policy file.

wrote Feb 14, 2013 at 1:23 AM