Advertisement
Guest User

Untitled

a guest
Aug 5th, 2013
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. Contract requires Session, but Binding 'BasicHttpBinding' doesn't support it or isn't configured properly to support it.
  2.  
  3. <ServiceContract(SessionMode:=SessionMode.Required)>
  4. Public Interface IPrivateService
  5.  
  6. <ServiceBehavior(InstanceContextMode:=InstanceContextMode.PerSession)>
  7. Public Class PrivateService
  8. Implements IPrivateService
  9.  
  10. <services>
  11. <service behaviorConfiguration="behaviorAction" name="Viking.Service.PrivateService">
  12. <endpoint address="RequiredService" binding="wsHttpBinding" bindingConfiguration="bindingAction" contract="Viking.Service.IPrivateService">
  13. <identity>
  14. <dns value="localhost"/>
  15. </identity>
  16. </endpoint>
  17. <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
  18. </service>
  19. </services>
  20. <bindings>
  21. <wsHttpBinding>
  22. <binding name="bindingAction" transactionFlow="false" sendTimeout="00:30:00" receiveTimeout="00:30:00">
  23. <reliableSession enabled="true"/>
  24. </binding>
  25. </wsHttpBinding>
  26. </bindings>
  27.  
  28. <protocolMapping>
  29. <add scheme="http" binding="wsHttpBinding"/>
  30. </protocolMapping>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement