Error Message "Section Or Group Name 'system.webServer' Is Already Defined" Appears When Running The Orchestrator Encryption Command

Error message "Section or group name 'system.webServer' is already defined" appears when running the Orchestrator encryption command.

Symptom: Error message "Section or group name 'system.webServer' is already defined" appears when running the Orchestrator encryption command:

Root Cause: This can be caused by two reasons,

  1. There is more than one system.webServer section defined in the web.config file.
  2. There is one or more than one system.webServer section defined in the UiPath.Orchestrator.dll.config file.

Resolution:

  • For Root Cause 1, Merge all system.webServer sections into one. There should be only one system.webServer section in web.config file.
  • For Root Cause 2, Delete all system.webServer sections. There should not be any all system.webServer section in UiPath.Orchestrator.dll.config file.