且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Tridion.AudienceManagement.API 在初始化期间抛出异常

更新时间:2023-02-24 17:53:08

似乎不允许运行控制台应用程序的用户读取用于加密配置的加密密钥.

It appears that the user running the console application is not allowed to read the encryption key which was used to encrypt the configuration.

您有几种解决方法:

  1. 删除加密(不推荐)
  2. 以有权使用密钥的用户身份运行您的工具(即 MTSUser)
  3. 向您要运行该工具的用户授予权限.例子命令行:aspnet_regiis -pa "TridionRsaProtectedConfigurationProvider" "domain\username"

(显然需要以可以读取密钥的人的身份运行——MTSUser)

(Which obviously needs to run as someone who can read the key -- MTSUser)

有关详细信息,请参阅以下 URL:

See the following URLs for more information:

  • Encrypting sensitive strings for Audience Manager (SDL LiveContent)
  • Walkthrough: Encrypting Configuration Information Using Protected Configuration (MSDN)