简体   繁体   English

在Microsoft版本管理中使用vNext模板时出现OperationFailedException

[英]OperationFailedException when using vNext template in Microsoft Release Management

I am getting the following error while running a workflow in microsoft release management 2013 update 4: 在Microsoft Release Management 2013更新4中运行工作流时遇到以下错误:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.AggregateException: One or more errors occurred. ---> Microsoft.TeamFoundation.Release.Common.Helpers.OperationFailedException: System.AggregateException: Failed to install 'VisualStudioRemoteDeployerbd3a8a59-325a-45d0-89f5-86a548554a12' from service executable path VisualStudioRemoteDeployer.exe . Consult the logs below:
c:\Users\vmadmin\AppData\Local\Temp\mfurnl9w.0.cs(95) : ; expected

c:\Users\vmadmin\AppData\Local\Temp\mfurnl9w.0.cs(94) :                     IntPtr policyHandle = IntPtr.Zero;

c:\Users\vmadmin\AppData\Local\Temp\mfurnl9w.0.cs(95) : >>>                     var attributes = new LSA_OBJECT_ATTRIBUTES()

c:\Users\vmadmin\AppData\Local\Temp\mfurnl9w.0.cs(96) :

I am using a vNext Release Template. 我正在使用vNext发布模板。 I have added an action "Deploy using PS/DSC" which is supposed to execute a powershell script on the machine. 我添加了一个操作“使用PS / DSC部署”,该操作应该在计算机上执行Powershell脚本。 All I get is the above error. 我得到的只是上述错误。

I have verified that remoting is setup as per here (on-premise section): https://www.visualstudio.com/en-us/get-started/deploy-no-agents-vs.aspx 我已验证是否按照此处(本地部分)设置了远程处理: https : //www.visualstudio.com/zh-cn/get-started/deploy-no-agents-vs.aspx

I have also referenced this: http://roadtoalm.com/2015/02/04/start-with-visual-studio-release-management-vnextvs-rm-for-dummies/ but our error is slightly different as it doesn't complain about the account. 我还引用了以下内容: http : //roadtoalm.com/2015/02/04/start-with-visual-studio-release-management-vnextvs-rm-for-dummies/,但我们的错误略有不同,因为它没有不要抱怨该帐户。 Although i am assuming the account is ok... I did use a couple variations and when the account is incorrect i get an obvious failure. 虽然我假设该帐户还可以......我确实使用了几种变体,但是当帐户不正确时,我会明显失败。

any help would be appreciated. 任何帮助,将不胜感激。

I found this question because I had the same issue. 我发现了这个问题,因为我遇到了同样的问题。 In RoadToAlm article he is using Windows Server 2012 on his VM. 在RoadToAlm文章中,他在其VM上使用Windows Server 2012。 My Azure VM was Windows Server 2008 SP2 and I resolved the issue by installing Windows Management Framework 3.0 ( http://go.microsoft.com/?linkid=9811175 ) which includes a newer Powershell than was installed on my server. 我的Azure VM是Windows Server 2008 SP2,并且我通过安装Windows Management Framework 3.0( http://go.microsoft.com/?linkid=9811175 )解决了该问题,该Windows Management Framework 3.0包含比服务器上安装的Powershell更新的Powershell。 After this update the issue was resolved. 此更新后,问题已解决。

I was facing the same issue on a destination Windows Server 2008 R2. 我在目标Windows Server 2008 R2上遇到相同的问题。 I just shift down the UAC level and it let the deployment tools be copied by the task into the c:\\Windows\\DtlDownloads folder (with VisualStudioRemoteDeployer.exe). 我只是降低了UAC级别,它使部署工具可以通过任务复制到c:\\ Windows \\ DtlDownloads文件夹(使用VisualStudioRemoteDeployer.exe)。

From the moment this file was available, the artifact copy had been successful. 从该文件可用的那一刻起,工件副本就已成功。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM