Question
UiPath.Orchestrator.Cli.exe を使用して UiPath.Orchestrator.dll.config のセクションを暗号化したのですが、次の復号化のコマンドでエラーが発生します。
.\UiPath.Orchestrator.Cli.exe protected-configuration -pd “secureAppSettings” -site “UiPath Orchestrator” -app “/”
エラー画面:
Answer
原因
暗号化されたUiPath.Orchestrator.dll.config で指定したセクション「secureAppSettings」前後のXML要素間に改行がされていない場合に本エラーが発生する場合がございます。
解決策
UiPath.Orchestrator.dll.configを確認頂き、XML要素間の改行を追加してください。
XML要素「~ NLog" />(※)<section name ~」の(※)部分に改行がされていない場合の例:
(変更前)
<configuration>
<configSections>
<section name=“secureAppSettings” type=“System.Configuration.AppSettingsSection, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a” />
<section name=“nlog” type=“NLog.Config.ConfigSectionHandler, NLog” /><section name=“system.web” type=“System.Configuration.IgnoreSection, System.Configuration.ConfigurationManager” allowLocation=“false” />
</configSections>
(変更後)
<configuration>
<configSections>
<section name=“secureAppSettings” type=“System.Configuration.AppSettingsSection, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a” />
<section name=“nlog” type=“NLog.Config.ConfigSectionHandler, NLog” />
<section name=“system.web” type=“System.Configuration.IgnoreSection, System.Configuration.ConfigurationManager” allowLocation=“false” />
</configSections>