Basic HTTP Binding isn't configured properly

i have configured a WCF service with wsHTTPBinding but even then i get the error

Contract requires Session, but Binding 'BasicHttpBinding' doesn't support it or isn't configured properly to support it.

here is the service contract definition

Public Interface IPrivateService

Here is the service implementation definition

Public Class PrivateService
    Implements IPrivateService

Here is the config settings

    <service behaviorConfiguration="behaviorAction" name="Viking.Service.PrivateService">
            <endpoint address="RequiredService" binding="wsHttpBinding" bindingConfiguration="bindingAction" contract="Viking.Service.IPrivateService">
                <dns value="localhost"/>
            <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
            <binding name="bindingAction" transactionFlow="false" sendTimeout="00:30:00" receiveTimeout="00:30:00">
              <reliableSession enabled="true"/>

truly appreciate any advise on the issue.


If you are using wcf 4.0 then open web.config/app.config and add following tag inside <system.serviceModel> tag.

  <add scheme="http" binding="wsHttpBinding"/>

Need Your Help

Android - how to replace part of a string by another string?

java android string

I have strings with some numbers and english words and I need to translate them to my mother tongue by finding them and replacing them by locallized version of this word. Do you know how to easily

llvm OCaml bindings

ocaml llvm opam

I'm working on llvm OCaml bindings.