Configuring Live Monitor for Multiple Bindings

Product version:

EPiServer CMO 2.0

Document last saved:

 

Live Monitor utilizes WCF service. Due to WCF services behavior additional configuration steps should be performed on sites with multiple bindings.

Changing TraceService.svc

Add Factory parameter to the service declaration in the file [%Program files folder%]\EPiServer\CMS\6.0.530.0\Install\Modules\CMO2.0.0.0\CMO\Trace\Services\TraceService.svc:
 

<%@ ServiceHost Service="EPiServer.Cmo.Cms.Trace.Services.CmoTraceService" Debug="true" 
Factory="EPiServer.Cmo.Cms.Trace.Services.CmoTraceServiceFactory " %>

 
Changing web.config

Find the following section under configuration/system.serviceModel/Services:
 
<service behaviorConfiguration="EPiServer.Trace.Services.TraceServiceBehavior" name="EPiServer.Cmo.Cms.Trace.Services.CmoTraceService">
<endpoint address="" binding="basicHttpBinding" contract="EPiServer.Trace.Services.ITraceService" />
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
</service>

 
And change the file as follows:
 

<service behaviorConfiguration="EPiServer.Trace.Services.TraceServiceBehavior" name="EPiServer.Cmo.Cms.Trace.Services.CmoTraceService">

<endpoint address="http://<site_name_1>/<CMO-UI-Alias>/Trace/services/TraceService.svc" binding="basicHttpBinding" contract="EPiServer.Trace.Services.ITraceService" />

<endpoint address="http://<site_name_2>/<CMO-UI-Alias>/Trace/services/TraceService.svc" binding="basicHttpBinding" contract="EPiServer.Trace.Services.ITraceService" />
...
</service>

 
Basically you need to specify basicHttpBinding endpoint tag for each of site addresses. Remove mexHttpBinding endpoint from this list.

Also add httpGetUrl parameter to the <behavior name="EPiServer.Trace.Services.TraceServiceBehavior"> section under the section configuration/system.serviceModel/behaviors:
 

<behavior name="EPiServer.Trace.Services.TraceServiceBehavior">
<serviceMetadata httpGetEnabled="true" httpGetUrl="http://<site_name>/CMO-UI-Alias/Trace/services/TraceService.svc"  />
<serviceDebug includeExceptionDetailInFaults="false" /></behavior>

FURTHER INFORMATION