A "This collection already contains an address with scheme http" Error Occurs When Starting A Workflow In Laserfiche Forms.

November 4, 2024 | KB: 1013467
Forms 9, Workflow 9, Forms 10, Workflow 10, Forms 11, Workflow 11, Forms 12, Workflow 12

Summary

Laserfiche Forms may be unable to launch a Workflow through a configured web service task or you may get an error when attempting to configure the Workflow web service through the Workflow Configuration Manager . The Windows Event Log will contain an entry from System.Service Model 4.0.0.0 with an exception similar to the following:

    System.ServiceModel.ServiceActivationException: The service '/Workflow/api' cannot be activated due to an exception during compilation. The exception message is: This collection already contains an address with scheme http. There can be at most one address per scheme in this collection. If your service is being hosted in IIS you can fix the problem by setting 'system.serviceModel/serviceHostingEnvironment/multipleSiteBindingsEnabled' to true or specifying 'system.serviceModel/serviceHostingEnvironment/baseAddressPrefixFilters'.

Cause

This issue can occur when there are multiple IIS site bindings on one site. By default, WCF services hosted under a site only support one binding.

Workaround

Configure the Workflow Web service to support multiple IIS site bindings by modifying the Web.config file located in C:\Program Files\Laserfiche\Laserfiche Workflow 9\Web\Laserfiche.Workflow.Web.

Set the multipleSiteBindingsEnabled property to true.

  1. Browse to \Web\Laserfiche.Workflow.Web.
  2. Use a text editor to open the Web.config file.
  3. Scroll down to the <serviceHostingEnvironment> element and modify the multipleSiteBindingsEnabled="false" to:

    multipleSiteBindingsEnabled="true"