我正在尝试将部署代理连接到来自不同域的RM客户端。我创建了一个影子帐户和所有其他帐户。但它不起作用。我能够连接到同一个域。我的RM客户端和服务器位于同一台机器(VM)中。我的部署代理位于不同的工作组域。(一切都在VM中)我从日志文件中得到的错误低于此。
Created Nt account for user RM.user1
Found Sid S-1-5-21-2704102820-366803756-3152234569-1011 for user RM.user1
Is RM.user1 network service account? False
Created Nt account for user RM.user1
Found Sid S-1-5-21-2704102820-366803756-3152234569-1011 for user RM.user1
Is RM.user1 local system account? False
Domain:
Final UserName: SVWP500\RM.user1.
Loading account details for SVWP500\RM.user1
Is SVWP500\RM.user1 local machine account? True
Normalized account is SVWP500\RM.user1 and Sid is S-1-5-21-2704102820-366803756-3152234569-1011
Validating account to use as identity for Release Management Services...
IsAdminAccount : Trying to determine if the account : SVWP500\RM.user1 is an admin on the local machine
IsAdminAccount : Trying to determine if the account : SVWP500\RM.user1 is an admin on the local machine
User SVWP500\RM.user1 is system, Admin
Validated account to use as identity for Release Management Services.
Validating Release Management Server for Team Foundation Server 2013....
ServiceUserIsServiceUser="1" InstallerUserIsReleaseManager="1" />, Release Management Server for Team Foundation Server 2013 validation succeeded.
Received Exception : System.UnauthorizedAccessException: Attempted to perform an unauthorized operation.
at System.Security.Cryptography.Utils.SetKeySetSecurityInfo(SafeProvHandle hProv, CryptoKeySecurity cryptoKeySecurity, AccessControlSections accessControlSections)
at System.Security.Cryptography.Utils.GetKeyPairHelper(CspAlgorithmType keyType, CspParameters parameters, Boolean randomKeyContainer, Int32 dwKeySize, SafeProvHandle& safeProvHandle, SafeKeyHandle& safeKeyHandle)
at System.Security.Cryptography.RSACryptoServiceProvider.GetKeyPair()
at Microsoft.TeamFoundation.Release.CommonConfiguration.Helpers.CryptoHelper.<.ctor>b__2(CspParameters container)
at Microsoft.TeamFoundation.Release.CommonConfiguration.Helpers.CryptoHelper.ConfigureDeployerCryptoKey(String userName)
at Microsoft.TeamFoundation.Release.CommonConfiguration.DeployerConfigurationManager.Configure()
at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
Work completed for GetConfiguration() call : got out of turn error
Please help on this.
答案 0 :(得分:2)
您看来用于注册部署代理的帐户看起来没有获得访问版本管理的权限。因为Team Foundation Validation之后的下一步是更新部署配置。
I, 2015/02/13, 08:25:54.156, Release Management Server for Team Foundation Server 2013 validation succeeded.
I, 2015/02/13, 08:25:54.236, Updating Microsoft Deployment Agent 2013 configuration settings...
V, 2015/02/13, 08:25:54.238, Successfully read Release Management deployer registry key, installation path is C:\Program Files (x86)\Microsoft Visual Studio 12.0\Release Management\
V, 2015/02/13, 08:25:54.251, Opening configuration file C:\Program Files (x86)\Microsoft Visual Studio 12.0\Release Management\bin\Microsoft.TeamFoundation.Release.Data.dll.config
我有类似的步骤,以下是我在环境中使用的步骤
在DomainA \ RMServer&amp;上创建本地用户(RMServer)。 DomainB \ DeploymentAgentServer计算机。将用户添加到管理员组
在DomainA \ RMServer&amp;上创建本地用户(DeployAgent)。 DomainB \ DeploymentAgentServer计算机。将用户添加到管理员组
从发布管理客户端添加。\ RMServer帐户并授予&#34;服务用户&#34;和#34;发布经理&#34;权限(请注意Windows帐户测试框不要使用machinename \ user,只需添加。\ user)
从发布管理客户端添加。\ DeployAgent帐户并授予&#34;服务用户&#34; (请注意Windows帐户文本框不要使用machinename \ user,只需添加。\ user)
在DomainB \ DeploymentAgentServer上安装Deployment Agent作为DeployAgent用户(在步骤2中创建)
我正在使用Microsoft&amp; Wouter de Kort博客