Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/tfs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Tfs 发布管理代理未连接_Tfs_Release Management_Ms Release Management - Fatal编程技术网

Tfs 发布管理代理未连接

Tfs 发布管理代理未连接,tfs,release-management,ms-release-management,Tfs,Release Management,Ms Release Management,我正在尝试将部署代理连接到我的发布管理服务器,TFS全部运行更新2 版本管理服务器位于测试环境服务器的网络之外。可以通过HTTP访问它。测试环境正在代理后面运行。我已更改配置文件的配置,通过添加以下内容确保通过代理进行连接: <system.net> <defaultProxy enabled="true" useDefaultCredentials="true"> <p

我正在尝试将部署代理连接到我的发布管理服务器,TFS全部运行更新2

版本管理服务器位于测试环境服务器的网络之外。可以通过HTTP访问它。测试环境正在代理后面运行。我已更改配置文件的配置,通过添加以下内容确保通过代理进行连接:

<system.net>
    <defaultProxy enabled="true" 
                  useDefaultCredentials="true">       
                  <proxy usesystemdefault="True"
                         bypassonlocal="True"/>
  </defaultProxy>
</system.net>
我正在使用影子帐户将部署代理连接到发布管理服务器

当我运行部署代理配置向导时,一切都会成功。日志文件没有显示任何错误。但是,在版本管理客户端中扫描新服务器时,服务器不会显示

我已将日志记录更改为详细记录,并在部署代理日志文件中找到以下信息:

9/3/2014 1:07:37 PM - Information - (3036, 5676) - Service is running under identity: <MACHINENAME>\<USERNAME>
9/3/2014 1:07:37 PM - Information - (3036, 5676) - Deployer service is starting.
9/3/2014 1:07:37 PM - Verbose - (3036, 5676) - HeartBeat: Sending HeartBeat
9/3/2014 1:07:37 PM - Verbose - (3036, 5676) - HeartBeat: Starting Configuration Tests.
9/3/2014 1:07:37 PM - Verbose - (3036, 5676) - Initializing cache for user <MachineName>\<UserName>.
9/3/2014 1:07:37 PM - Verbose - (3036, 5676) - Loading profile for user <MachineName>\<UserName>.
9/3/2014 1:07:37 PM - Verbose - (3036, 5676) - Initializing cache for user <MachineName>\<UserName>.
9/3/2014 1:07:37 PM - Verbose - (3036, 5676) - Loading profile for user <MachineName>\<UserName>.
9/3/2014 1:07:37 PM - Verbose - (3036, 5676) - Initializing cache for user <MachineName>\<UserName>.
9/3/2014 1:07:37 PM - Verbose - (3036, 5676) - Loading profile for user <MachineName>\<UserName>.
9/3/2014 1:07:37 PM - Verbose - (3036, 5676) - Initializing cache for user <MachineName>\<UserName>.
9/3/2014 1:07:37 PM - Verbose - (3036, 5676) - Loading profile for user <MachineName>\<UserName>.
9/3/2014 1:07:37 PM - Verbose - (3036, 5676) - Initializing cache for user <MachineName>\<UserName>.
9/3/2014 1:07:37 PM - Verbose - (3036, 5676) - Loading profile for user <MachineName>\<UserName>.
9/3/2014 1:07:37 PM - Verbose - (3036, 5676) - Initializing cache for user <MachineName>\<UserName>.
9/3/2014 1:07:37 PM - Verbose - (3036, 5676) - Loading profile for user <MachineName>\<UserName>.
9/3/2014 1:07:37 PM - Information - (3036, 5676) - HeartBeat: Communication Tests terminated. Results are: 
 Test 1 of 7 failed:
Communication with the Deployment Controller Web Service was not successful. The error received is: Object reference not set to an instance of an object.
Test 2 of 7 failed:
Communication with the database through the Deployment Controller Web Service was not successful. The error received during the test is: Object reference not set to an instance of an object.
Test 3 of 7 failed:
The account running this Windows Service is not a valid user in the Release Management Server. Please add the user and try again. For cross-domain scenarios using Shadow Accounts, add the local Shadow Account user to the Release Management Server. The error received during the test is: Root element is missing.
Test 5 of 7 failed:
Root element is missing.
Test 6 of 7 failed:
Root element is missing.
Test 7 of 7 failed:
The Deployer user (<MACHINENAME>\<USERNAME>) does not have access to the crypto store. On the server where the deployment agent is installed, navigate to this folder %ALLUSERSPROFILE%\Application Data\Microsoft\Crypto\RSA\MachineKeys and give read/write access to <MACHINENAME>\<USERNAME>.

9/3/2014 1:07:37 PM - Information - (3036, 5676) - HeartBeat: HeartBeat timer is started.
9/3/2014 1:07:37 PM - Error - (3036, 5676) - Object already exists.
: \r\n\r\n   at System.Security.Cryptography.CryptographicException.ThrowCryptographicException(Int32 hr)
   at System.Security.Cryptography.Utils._CreateCSP(CspParameters param, Boolean randomKeyContainer, SafeProvHandle& hProv)
   at System.Security.Cryptography.Utils.CreateProvHandle(CspParameters parameters, Boolean randomKeyContainer)
   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.Data.Helpers.CryptoHelper.GenerateKeySet(String containerName)
   at Microsoft.TeamFoundation.Release.DeploymentAgent.Services.Deployer.DeploymentEventFetcherBase..ctor(Double interval, String dnsName, String serverIpAddress, Action`3 deploymentProcessor, String cryptoContainerName)
   at Microsoft.TeamFoundation.Release.DeploymentAgent.Services.Deployer.DeploymentEventFetcher..ctor(Double interval, String dnsName, String serverIpAddress, Action`3 deploymentProcessor)
   at Microsoft.TeamFoundation.Release.DeploymentAgent.Services.Deployer.DeploymentEventFetcher..ctor(Double interval)
   at Microsoft.TeamFoundation.Release.DeploymentAgent.Service.OnStart(String[] args)
9/3/2014 1:07:42 PM - Verbose - (3036, 5676) - Initializing cache for user <MachineName>\<UserName>.
9/3/2014 1:07:42 PM - Verbose - (3036, 5676) - Loading profile for user <MachineName>\<UserName>.
9/3/2014 1:07:42 PM - Verbose - (3036, 5676) - Initializing cache for user <MachineName>\<UserName>.
9/3/2014 1:07:42 PM - Verbose - (3036, 5676) - Loading profile for user <MachineName>\<UserName>.
9/3/2014 1:07:42 PM - Verbose - (3036, 5676) - Initializing cache for user <MachineName>\<UserName>.
9/3/2014 1:07:42 PM - Verbose - (3036, 5676) - Loading profile for user <MachineName>\<UserName>.
9/3/2014 1:07:42 PM - Error - (3036, 5676) - Object reference not set to an instance of an object.: \r\n\r\n   at Microsoft.TeamFoundation.Release.Data.Model.SystemSettings.LoadXml(Int32 id)
   at Microsoft.TeamFoundation.Release.Data.Model.ModelFactory.Load[T](Int32 id)
   at Microsoft.TeamFoundation.Release.DeploymentAgent.Services.Deployer.HeartBeat.SetNewInterval()
   at Microsoft.TeamFoundation.Release.DeploymentAgent.Services.Deployer.HeartBeat.TimerElapsed(Object sender, ElapsedEventArgs e)
9/3/2014 1:08:04 PM - Information - (3036, 5840) - Deployer service is stopped.
日志文件显示所有通信检查失败。出什么事了

使现代化 卸下钥匙f92439b4a629bc3a41a69e308c后。。。从MachineKeys文件夹中,权限错误消失。但是,我的部署代理仍然无法连接到服务器。这是日志文件显示的内容:

9/8/2014 8:37:40 AM - Information - (2712, 292) - Service is running under identity: <machinename>\<username>
9/8/2014 8:37:40 AM - Information - (2712, 292) - Deployer service is starting.
9/8/2014 8:37:40 AM - Verbose - (2712, 292) - HeartBeat: Sending HeartBeat
9/8/2014 8:37:40 AM - Verbose - (2712, 292) - HeartBeat: Starting Configuration Tests.
9/8/2014 8:37:40 AM - Verbose - (2712, 292) - Initializing cache for user <machinename>\<username>.
9/8/2014 8:37:40 AM - Verbose - (2712, 292) - Loading profile for user <machinename>\<username>.
9/8/2014 8:37:40 AM - Verbose - (2712, 292) - Initializing cache for user <machinename>\<username>.
9/8/2014 8:37:40 AM - Verbose - (2712, 292) - Loading profile for user <machinename>\<username>.
9/8/2014 8:37:40 AM - Verbose - (2712, 292) - Initializing cache for user <machinename>\<username>.
9/8/2014 8:37:40 AM - Verbose - (2712, 292) - Loading profile for user <machinename>\<username>.
9/8/2014 8:37:40 AM - Verbose - (2712, 292) - Initializing cache for user <machinename>\<username>.
9/8/2014 8:37:40 AM - Verbose - (2712, 292) - Loading profile for user <machinename>\<username>.
9/8/2014 8:37:40 AM - Verbose - (2712, 292) - Initializing cache for user <machinename>\<username>.
9/8/2014 8:37:40 AM - Verbose - (2712, 292) - Loading profile for user <machinename>\<username>.
9/8/2014 8:37:40 AM - Verbose - (2712, 292) - Initializing cache for user <machinename>\<username>.
9/8/2014 8:37:40 AM - Verbose - (2712, 292) - Loading profile for user <machinename>\<username>.
9/8/2014 8:37:40 AM - Information - (2712, 292) - HeartBeat: Communication Tests terminated. Results are: 
 Test 1 of 7 failed:
Communication with the Deployment Controller Web Service was not successful. The error received is: Object reference not set to an instance of an object.
Test 2 of 7 failed:
Communication with the database through the Deployment Controller Web Service was not successful. The error received during the test is: Object reference not set to an instance of an object.
Test 3 of 7 failed:
The account running this Windows Service is not a valid user in the Release Management Server. Please add the user and try again. For cross-domain scenarios using Shadow Accounts, add the local Shadow Account user to the Release Management Server. The error received during the test is: Root element is missing.
Test 5 of 7 failed:
Root element is missing.
Test 6 of 7 failed:
Root element is missing.

9/8/2014 8:37:40 AM - Information - (2712, 292) - HeartBeat: HeartBeat timer is started.
9/8/2014 8:37:40 AM - Verbose - (2712, 292) - Initializing cache for user <machinename>\<username>.
9/8/2014 8:37:40 AM - Verbose - (2712, 292) - Loading profile for user <machinename>\<username>.
9/8/2014 8:37:40 AM - Verbose - (2712, 292) - Initializing cache for user <machinename>\<username>.
9/8/2014 8:37:40 AM - Verbose - (2712, 292) - Loading profile for user <machinename>\<username>.
9/8/2014 8:37:40 AM - Verbose - (2712, 292) - Initializing cache for user <machinename>\<username>.
9/8/2014 8:37:40 AM - Verbose - (2712, 292) - Loading profile for user <machinename>\<username>.
9/8/2014 8:37:40 AM - Information - (2712, 292) - Deployment: Deployment Event Fetcher timer is started.
9/8/2014 8:37:40 AM - Information - (2712, 292) - Cleanup: Cleanup Service timer is started.
9/8/2014 8:37:45 AM - Verbose - (2712, 292) - Initializing cache for user <machinename>\<username>.
9/8/2014 8:37:45 AM - Verbose - (2712, 292) - Loading profile for user <machinename>\<username>.
9/8/2014 8:37:45 AM - Verbose - (2712, 292) - Initializing cache for user <machinename>\<username>.
9/8/2014 8:37:45 AM - Verbose - (2712, 292) - Loading profile for user <machinename>\<username>.
9/8/2014 8:37:45 AM - Verbose - (2712, 292) - Initializing cache for user <machinename>\<username>.
9/8/2014 8:37:45 AM - Verbose - (2712, 292) - Loading profile for user <machinename>\<username>.
9/8/2014 8:37:45 AM - Error - (2712, 292) - Object reference not set to an instance of an object.: \r\n\r\n   at Microsoft.TeamFoundation.Release.Data.Model.SystemSettings.LoadXml(Int32 id)
   at Microsoft.TeamFoundation.Release.Data.Model.ModelFactory.Load[T](Int32 id)
   at Microsoft.TeamFoundation.Release.DeploymentAgent.Services.Deployer.HeartBeat.SetNewInterval()
   at Microsoft.TeamFoundation.Release.DeploymentAgent.Services.Deployer.HeartBeat.TimerElapsed(Object sender, ElapsedEventArgs e)

我已经创建了影子帐户,当我在Azure虚拟机上安装代理并使用与此场景中使用的凭据相同的凭据时,此设置正在运行。我想这个问题与客户站点上的代理配置有关。

我在同一主题上的文章。验证每个STPE并确保已正确配置卷影帐户。我没有从本地服务器发布到Azure VM。

要解决此问题,您需要确保用于配置发布管理服务器的凭据在C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys上具有修改权限。在授予自己修改权限之前,您可能必须拥有该文件夹中某些文件的所有权

它对我有用

大家好,, 快速更新我找到了问题的解决方案。这与C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys中的加密文件有关。您需要特别选择MachineKeys中的版本管理使用的文件,并为RM使用的帐户对该文件应用完全权限。 如果您在文件夹级别执行此操作,即使您告诉它,它也不会递归地应用权限。请相信系统帐户没有权限访问MachineKeys中的文件,因此,当您尝试在文件夹级别更改权限时,除非您手动分别覆盖文件的安全设置,否则系统帐户在此过程中无法访问这些文件。
希望这能帮助别人,因为这让我发疯了

我不能代表发布管理代理说话,但任何人如果遇到此错误,都需要了解它与加密、MachineKeys文件夹的权限和所有权有关-本质上与此RM无关-因为尝试使用RM并不是导致此错误发生的唯一原因,从这些方面也可以看出同样的问题:

如果权限/所有权设置不正确(默认情况下不是这样),仅尝试运行调用RSACryptServiceProvider的任何代码都会出现相同的错误:

设置此项的位置可以在多个不同的位置,具体取决于系统:

Windows 7: C:\Users\All Users\Microsoft\Crypto\RSA\MachineKeys仅在此处调整它对我有效

C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys用户3137856的贡献

Windows 2000: C:\Documents and Settings\All Users\Local Settings\Application Data\Microsoft\Crypto\RSA\MachineKeys

您将以管理员身份导航到该文件夹,以授予所需组的所有权和权限。该组将由您是否只希望管理员运行您的应用程序来确定,这意味着您希望本地、计算机级别的管理员组,或者所有用户,在这种情况下,您希望域级别的所有人组

您选择的任一组都需要拥有文件夹的所有权和完全控制权,还需要拥有文件夹中文件的所有权和完全控制权。它需要从上面向下传播

因此,必须将文件夹的所有权设置为这两个组中的一个,但在设置所有者时,请选择“对子容器和对象替换所有者”。这使中的文件也具有正确的所有权

然后,在应用权限时,右键单击文件夹,选择属性>安全选项卡>高级按钮>更改权限按钮>选择组,选择使用此对象的可继承权限替换所有子权限,然后单击编辑。然后选中每个“允许”复选框,在每个对话框上单击“确定”。这将对文件夹和其中的文件应用权限。

Deployer用户\无权访问加密存储。
在安装部署代理的服务器上,导航到此文件夹%ALLUSERSPROFILE%\Application Data\Microsoft\Crypto\RSA\MachineKeys,并授予\的读/写权限。我已经这样做了。是否在RM中以用户身份添加了影子帐户?@JohannBlais是,影子帐户被添加到RM中,我感觉它与其他服务器正在运行的代理有关fine@MrHinshIE web access目前正在与产品组一起邮寄,他们找不到它,也会在可用时发布更新我写了相同的博客帖子;然而,这在这种情况下不起作用,我也不知道为什么会如此准确,所以我投了赞成票。但我发现,您必须具体应用所有权,并在子容器和对象上选择“替换所有者”框。然后,如果您以管理员身份登录进行更改,它会将所有权更改应用于文件夹及其内容。然后,将权限应用于文件夹,并选择将所有子权限替换为此对象的可继承权限。这将设置文件夹及其所有文件的权限。至少在Windows 7中,您可以对C:\Users\all Users\Microsoft\Crypto\RSA\MachineKeys执行所有这些操作。在Windows 2000中,我相信它类似于C:\Documents and Settings\all Users\Local Settings\Application Data\Microsoft\Crypto\RSA\MachineKeys。