<?xml version="1.0" encoding="utf-8" ?> <access-policy> <cross-domain-access> <policy> <allow-from http-request-headers="*"> <domain uri="*"/> </allow-from> <grant-to> <resource path="/" include-subpaths="true"/> </grant-to> </policy> </cross-domain-access> </access-policy>
Error System.Reflection.TargetInvocationException: An exception occurred during the operation, making the result invalid. Check InnerException for exception details. ---> System.ServiceModel.CommunicationException: An error occurred while trying to make a request to URI 'http://{site}:62490/{sub folder}/BMEntityService.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. ---> System.Security.SecurityException: Security error. at System.Net.Browser.ClientHttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse(IAsyncResult result) --- End of inner exception stack trace --- 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 BM.BMServiceRef.BMEntityServiceClient.BMEntityServiceClientChannel.EndLoadIncidentsThatAreOpen(IAsyncResult result) at BM.BMServiceRef.BMEntityServiceClient.BMServiceRef_BMEntityService_EndLoadIncidentsThatAreOpen(IAsyncResult result) at BM.BMServiceRef.BMEntityServiceClient.OnEndLoadIncidentsThatAreOpen(IAsyncResult result) at System.ServiceModel.ClientBase`1.OnAsyncCallCompleted(IAsyncResult result) --- End of inner exception stack trace --- at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary() at BM.BMServiceRef.LoadIncidentsThatAreOpenCompletedEventArgs.get_Result() at BM.MainPage.LoadOpenIncidents(Object sender, LoadIncidentsThatAreOpenCompletedEventArgs e) at System.EventHandler`1.Invoke(Object sender, TEventArgs e) at BM.BMServiceRef.BMEntityServiceClient.OnLoadIncidentsThatAreOpenCompleted(Object state)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)