Я развернул WCF на хост, и мой сайт ASP.NET пытается использовать ту же службу.WCF в среде частичного доверия
Я получаю эту ошибку:
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.
Как обойти это?
Является ли хост WCF и хост ASP.NET в том же домене? –
Также, кто является вашим поставщиком услуг? Например, это GoDaddy? –
Kris: WCF, организованный одним провайдером [не уверен, кто это делает клиент, который решил выбрать своего провайдера, пытаясь собрать эту информацию]. Asp.net размещен внутри клиента ... Они не в одном домене – ltech