Kentico持续集成-用户登录失败

时间:2019-02-21 23:21:34

标签: kentico

我正在尝试让Kentico Continuous Integration运行,这是我CI流程中的一个步骤。但是,我的部署脚本运行时遇到以下错误:

Running Kentico Continuous Integration...
Continuous Integration Console
Kentico Software
System.Exception: Login failed for user 'MACHINE-NAME\ci-runner-user'.
   at CMS.DataEngine.CMSApplication.ReportApplicationError(String message)
   at CMS.DataEngine.CMSApplication.Init()
   at CMS.ContinuousIntegration.ConsoleApp.Program.InitKenticoApplication(String webAppPhysicalPath)
   at CMS.ContinuousIntegration.ConsoleApp.Program.Deserialize(String webAppPhysicalPath)
   at CMS.ContinuousIntegration.ConsoleApp.Program.Main(String[] args)

如何启用部署脚本运行的本地用户以成功执行~\CMS\bin\ContintinuousIntegration.exe -r

2 个答案:

答案 0 :(得分:0)

我最初的想法是,您正在web.config中使用集成安全性-确保您提到的用户对Kentico DB具有SQL访问权限

答案 1 :(得分:0)

您需要允许PowerShell ISE不受限制地运行。为此,请按照以下说明进行操作:

  • 安装或确保已安装PowerShell ISE
  • 以管理员身份运行PS
  • 仅第一次-在PS ISE中运行此命令“ Set-ExecutionPolicy Unrestricted”。它应该显示LocalMachine为Unrestricted。这将允许您执行CI Restore的脚本