Campaign Manager

Unable to see new screen configured in TCampUI after changing global_vars.js

Issue Description

Issue 1: The variable for screenpopURL in "//TCampUI/campaign_scripts/global_vars.js" updated. TMAC launches this URL for each campaign call. The Campaign Manager UI displays the old URL. Clearing the browser cache does not fix the issue.

Issue 2: The variable for screenpopURL in "//TCampUI/campaign_scripts/global_vars.js" updated. TMAC launches this URL for each campaign call. The Campaign Manager UI displays the new URL for new campaign records. The existing records display the older screenpopURL. Clearing the browser cache does not fix the issue.

global_vars.js parameter for screenpopUrls

global_vars.js parameter for screenpopUrls

Troubleshooting Information

Issue 1: After making any changes to the global_vars.js for the Campaign Manager UI, the Campaign Manager Windows Service needs to be restarted. After the restart, the changes will be reflected in the UI.

Issue 2: The Campaign data is stored in the SQLite DB. Edit the existing campaign details in the database to reflect the new URL. Refer to the FAQ 'Using SQLite browser for applications with SQLiteDB integration' on using SQLiteDB browsers for SQLiteDB configuration.

System.InvalidOperationException: A registration already exists for URI

Scenario

Start the Windows Service. The service cannot be started and errors are seen in logs.

  • TCampServer (Tetherfi Campaign Manager)

Issue Description

Service does not start with the error as below:

"Service cannot be started. System.InvalidOperationException: The ChannelDispatcher at 'http://localhost:50000/application' with contract(s) '"Application.IService"' is unable to open its IChannelListener. ---> System.InvalidOperationException: A registration already exists for URI 'http://localhost:50000/application'."

Possible Root Cause

  1. Windows Service endpoints for the application are duplicated.
  2. Windows Service and the Third Party Web Service (for REST/POM integration) endpoints are duplicated.

Troubleshooting Information

The base address and client endpoints should be unique in tmc.config and template.config files.

The baseAddress for a webService/windowsService should not have the same URI as the REST, POM or third party Proxy service endpoint.

e.g: TCampServer configuration,

  • Windows service URI: http://localhost:50000/TCampServer1
  • REST URI: http://localhost:50080/TCampServer1or http://localhost:50000/TCampServer_REST.