Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Contract requires Session, but Binding 'BasicHttpBinding' doesn't support it or isn't configured properly to support it.
- <ServiceContract(SessionMode:=SessionMode.Required)>
- Public Interface IPrivateService
- <ServiceBehavior(InstanceContextMode:=InstanceContextMode.PerSession)>
- Public Class PrivateService
- Implements IPrivateService
- <services>
- <service behaviorConfiguration="behaviorAction" name="Viking.Service.PrivateService">
- <endpoint address="RequiredService" binding="wsHttpBinding" bindingConfiguration="bindingAction" contract="Viking.Service.IPrivateService">
- <identity>
- <dns value="localhost"/>
- </identity>
- </endpoint>
- <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
- </service>
- </services>
- <bindings>
- <wsHttpBinding>
- <binding name="bindingAction" transactionFlow="false" sendTimeout="00:30:00" receiveTimeout="00:30:00">
- <reliableSession enabled="true"/>
- </binding>
- </wsHttpBinding>
- </bindings>
- <protocolMapping>
- <add scheme="http" binding="wsHttpBinding"/>
- </protocolMapping>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement