Overview

PST Flight Deck monitoring service is not starting and generating a warning when the system is configured to use HTTPS.
Prerequisites
This issue was observed in PST Flight Deck Monitoring Tool when using HTTPS
Details
Warning popup window will appear when trying to start PST Flight Deck Monitoring service:

Event is logged at the point of failure in Windows Event Viewer:
 

Log Name:      Application
Source:        MonitoringAgentService
Level:         Error
Description:
Service cannot be started. System.InvalidOperationException: Could
not find a base address that matches scheme http for the endpoint
with binding BasicHttpBinding. Registered base address schemes are
[https].
   at System.ServiceModel.ServiceHostBase.MakeAbsoluteUri(Uri relativeOrAbsoluteUri, Binding binding, UriSchemeKeyedCollection baseAddresses)
   at System.ServiceModel.Description.ConfigLoader.LoadServiceDescription(ServiceHostBase host, ServiceDescription description, ServiceElement serviceElement, Action`1 addBaseAddress, Boolean skipHost)
   at System.ServiceModel.ServiceHostBase.LoadConfigurationSectionInternal(ConfigLoader configLoader, ServiceDescription description, ServiceElement serviceSection)
   at System.ServiceModel.ServiceHost.ApplyConfiguration()
   at System.ServiceModel.ServiceHostBase.InitializeDescription(UriSchemeKeyedCollection baseAddresses)
   at System.ServiceModel.ServiceHost..ctor(Type serviceType, Uri[] baseAddresses)
   at QUADROtech.Tools.FlightDeckMonitor.Service.MonitoringAgentService.OnSta...


Solution

1) Locate file QUADROtech.Tools.FlightDeckMonitor.Service.exe.config
This file should be by default located in “C:\Program Files\QUADROtech\PST FlightDeck\Tools\Monitor”
2) Edit file QUADROtech.Tools.FlightDeckMonitor.Service.exe.config
3) Update <behaviors>
 a) add  httpsGetEnabled=”true” to string <serviceMetadata httpGetEnabled=”false”/> so you get:


<behaviors>
      <serviceBehaviors>
        <behavior name="QUADROtech.Tools.FlightDeckMonitor.Service.MonitorServiceBehavior">
          <serviceMetadata httpGetEnabled="false"  httpsGetEnabled="true"/>
          <serviceDebug includeExceptionDetailInFaults="False"/>
        </behavior>
      </serviceBehaviors>
    </behaviors>


4) Update <binding> where binding name= “MonitorServiceBindingConfiguration”
 a) Change <security mode=”None”>  to  <security mode=”Transport”>
      b)  add proxyCredentialType=”None” realm=”” to string  <transport clientCredentialType=”None”/> so you get:

</binding>
   <binding name="MonitorServiceBindingConfiguration" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00"....       
      <readerQuotas maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" ....
      <security mode="Transport">
        <transport clientCredentialType="None" proxyCredentialType="None" realm=""/>
  </security>
</binding>

5) Save changes
6) Start the PST Flight Deck Monitoring service

Print Friendly, PDF & Email