Click here to Skip to main content
15,885,961 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
After publishing I am getting an error. I am not sure where to look for a fix. The error has changed to the below, I have a ClientAccessPolicy file in the root of the directory and it is below - is it missing anything? In Fiddler I can see the app is Hosted via the main site and this app lives in another app folder on the site. Could that be the problem? How do I correct this?

XML
<?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)



Can someone help me figure this out? Thanks in advance...
Posted
Updated 4-Oct-13 19:43pm
v4

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900