Task fails at runtime with the error: “System.UnauthorizedAccessException: Access to the registry key….is denied”

Symptom

A task is failing at runtime and is producing the following error message:

System.UnauthorizedAccessException: Access to the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Orbis Software\TaskCentre\Providers\{B30672F2-176C-4F71-A35E-8C50A99BE230}\parameters’ is denied.

Cause

A “parameters” key that the task is expecting to be present is missing for the associated registry key: {B30672F2-176C-4F71-A35E-8C50A99BE230}

Solution

Manually add the missing parameter key within the registry at the specified location mentioned within the error.

  1. Close the TaskCentre client and enter the registry.Browse to the following location:
    On x86 32bit systems
    HKEY_LOCAL_MACHINE\SOFTWARE\Orbis Software\TaskCentre\Providers\{B30672F2-176C-4F71-A35E-8C50A99BE230}
    On x64 64 bit systems
    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Orbis Software\TaskCentre\Providers\{B30672F2-176C-4F71-A35E-8C50A99BE230}
  2. Add a Parameters key and create a DWORD value called DisableSchemaValidationWarning exactly as shown in the screenshot below.
    Note: The value is case sensitive.

    1

  3. Reopen the TaskCentre client and run the task again.