how to enable WCF Session with wsHttpBidning with Transport only Security
Posted
by Mubashar Ahmad
on Stack Overflow
See other posts from Stack Overflow
or by Mubashar Ahmad
Published on 2010-04-16T05:05:48Z
Indexed on
2010/04/16
5:13 UTC
Read the original article
Hit count: 1384
Dear Devs
I have a WCF Service currently deployed with basicHttpBindings and SSL enabled. But now i need to enable wcf sessions(not asp sessions) so i moved service to wsHttpBidnings but sessions are not enabled
I have set
[ServiceBehavior(InstanceContextMode = InstanceContextMode.PerSession)]
But when i set
SessionMode=SessionMode.Required
on service contract it says
Contract requires Session, but Binding 'WSHttpBinding' doesn't support it or isn't configured properly to support it.
following is the definition of WSHttpBinding
<wsHttpBinding>
<binding name="wsHttpBinding">
<readerQuotas maxStringContentLength="10240" />
<reliableSession enabled="false" />
<security mode="Transport">
<transport clientCredentialType="None">
<extendedProtectionPolicy policyEnforcement="Never" />
</transport>
</security>
</binding>
</wsHttpBinding>
please help me with this
© Stack Overflow or respective owner