I have deployed by WCF to a host and my ASP.NET site is trying to consume the same service.
I get this error:
The Binding with name BasicHttpBinding failed validation because it contains a BindingElement with type System.ServiceModel.Channels.MtomMessageEncodingBindingElement which is not supported in partial trust. Consider using BasicHttpBinding or WSHttpBinding, or hosting your application in a full-trust environment. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: The Binding with name BasicHttpBinding failed valiadation because it contains a BindingElement with type System.ServiceModel.Channels.MtomMessageEncodingBindingElement which is not supported in partial trust. Consider using BasicHttpBinding or WSHttpBinding, or hosting your application in a full-trust environment.
How do I get around this?