I have encountered a problem when calling the core service. The error message is as follows:

The WSHttpBinding with name WSHttpBinding failed validation because it contains a BindingElement with type System.ServiceModel.Channels.SymmetricSecurityBindingElement which is not supported in partial trust

Most solutions on the Internet seem to suggest changing the binding to use basicHttpBinding, but if I do that, I get a different message about the binding not supporting sessions.

How can I best approach solving or working around this issue?


Indeed you can only use the SessionAwareCoreServiceClient with wsHttp or NetTCP, basicHttp does not support sessions.

If you do need to use Basic HTTP as the protocol, then you should use the CoreServiceClient class instead of the SessionAwareCoreServiceClient.

Can't you run your tool(s) from the server directly? (Avoiding the trust issue?)

  • No I can't, but I was wondering if a change in server config might make it work better.
    – Dominic Cronin
    Jan 7 '14 at 21:55

Please note in a Partial Trust environment, the WSHttpBinding is supported for Transport security mode only.

You can create custom binding to use but it must also complies to few restrictions like allowed transport binding elements will be HttpTransportBindingElement and HttpsTransportBindingElement, Bindings which are using reliable messaging, transactions etc. are not used and there are few other similar restriction which can be find on MSDN.

On this Stackflow question, few workarounds have been given, may be you can give a look to them:


I hope it helps.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.