How to run Kentico Chat module on different protocols.

   —   
This article describes what configuration is required to run the Kentico Chat module on HTTP protocol, HTTPS protocol or both protocols.
If you want to use only the HTTP protocol, add the following configuration section to the web.config file into the <configuration> section:
<system.serviceModel> <bindings> <webHttpBinding> <binding name="SimpleHttpBinding"> <security mode="None" /> </binding> </webHttpBinding> </bindings> <behaviors> <endpointBehaviors> <behavior name="ChatServiceBehavior"> <enableWebScript /> </behavior> </endpointBehaviors> </behaviors> <serviceHostingEnvironment aspNetCompatibilityEnabled="true" /> <services> <service name="CMS.Chat.ChatService"> <endpoint address="" behaviorConfiguration="ChatServiceBehavior" binding="webHttpBinding" bindingConfiguration="SimpleHttpBinding" contract="CMS.Chat.IChatService" /> </service> <service name="CMS.Chat.ChatSupportService"> <endpoint address="" behaviorConfiguration="ChatServiceBehavior" binding="webHttpBinding" bindingConfiguration="SimpleHttpBinding" contract="CMS.Chat.IChatSupportService" /> </service> </services> </system.serviceModel>

or, if you want to use only the HTTPS protocol, add the following configuration section to the web.config file into the <configuration> section instead:
<system.serviceModel> <bindings> <webHttpBinding> <binding name="SecureHttpBinding"> <security mode="Transport" /> </binding> </webHttpBinding> </bindings> <behaviors> <endpointBehaviors> <behavior name="ChatServiceBehavior"> <enableWebScript /> </behavior> </endpointBehaviors> </behaviors> <serviceHostingEnvironment aspNetCompatibilityEnabled="true" /> <services> <service name="CMS.Chat.ChatService"> <endpoint address="" behaviorConfiguration="ChatServiceBehavior" binding="webHttpBinding" bindingConfiguration="SecureHttpBinding" contract="CMS.Chat.IChatService" /> </service> <service name="CMS.Chat.ChatSupportService"> <endpoint address="" behaviorConfiguration="ChatServiceBehavior" binding="webHttpBinding" bindingConfiguration="SecureHttpBinding" contract="CMS.Chat.IChatSupportService" /> </service> </services> </system.serviceModel>

or add the following configuration section to the web.config file into the <configuration> section if you want to use both HTTP and HTTPs protocols together:
<system.serviceModel> <bindings> <webHttpBinding> <binding name="SecureHttpBinding"> <security mode="Transport" /> </binding> <binding name="SimpleHttpBinding"> <security mode="None" /> </binding> </webHttpBinding> </bindings> <behaviors> <endpointBehaviors> <behavior name="ChatServiceBehavior"> <enableWebScript /> </behavior> </endpointBehaviors> </behaviors> <serviceHostingEnvironment aspNetCompatibilityEnabled="true" /> <services> <service name="CMS.Chat.ChatService"> <endpoint address="" behaviorConfiguration="ChatServiceBehavior" binding="webHttpBinding" bindingConfiguration="SecureHttpBinding" contract="CMS.Chat.IChatService" /> <endpoint address="" behaviorConfiguration="ChatServiceBehavior" binding="webHttpBinding" bindingConfiguration="SimpleHttpBinding" contract="CMS.Chat.IChatService" /> </service> <service name="CMS.Chat.ChatSupportService"> <endpoint address="" behaviorConfiguration="ChatServiceBehavior" binding="webHttpBinding" bindingConfiguration="SecureHttpBinding" contract="CMS.Chat.IChatSupportService" /> <endpoint address="" behaviorConfiguration="ChatServiceBehavior" binding="webHttpBinding" bindingConfiguration="SimpleHttpBinding" contract="CMS.Chat.IChatSupportService" /> </service> </services> </system.serviceModel>

Please note: When using Chat module for Kentico CMS 6 from on our Marketplace, these instrutions are also included in instructions file within Marketplace package.
-rm-


See also:
Kentico CMS 7 Chat Module

Applies to: Kentico CMS 6.x, 7.x
Share this article on   LinkedIn