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 Description:

When attempting to run the Orchestrator encryption command, an error message is displayed indicating that the section or group name 'system.webServer' is already defined.

Root Cause Verification:

  1. Multiple system.webServer Sections in web.config:
    • Check the web.config file for duplicate system.webServer sections.
  2. system.webServer Sections in UiPath.Orchestrator.dll.config:
    • Check the UiPath.Orchestrator.dll.config file for any system.webServer sections.

Resolution:

  1. Merge Sections in web.config:

    1. Open the web.config file
    2. Locate all instances of the system.webServer section
    3. Combine the contents of all system.webServer sections into a single section
    4. Save the web.config file.
  2. Delete Sections in UiPath.Orchestrator.dll.config:

    1. Open the UiPath.Orchestrator.dll.config file
    2. Locate and delete any system.webServer sections
    3. Save the UiPath.Orchestrator.dll.config file.