繁体   English   中英

VS2015中的Service Fabric,PowerShell脚本执行失败

[英]Service Fabric in VS2015, PowerShell script failed to execute

我正在做Service Fabric教程,可以在这里找到:

https://azure.microsoft.com/en-us/documentation/articles/service-fabric-create-your-first-application-in-visual-studio/

我以管理员身份启动了PowerShell(在通过OS X通过Parallels运行的Windows 10中),并根据说明执行了此操作:

Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Force -Scope CurrentUser

我已经以管理员身份和正常方式启动了Visual Studio 2015。 然后,我启动了教程应用程序,但出现以下错误:

The PowerShell script failed to execute. See the Output window for details.

输出窗口仅显示以下内容:

2>Finished executing script 'Set-LocalClusterReady'.
2>Time elapsed: 00:00:03.1922793
2>The PowerShell script failed to execute.
========== Build: 1 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========

有什么想法可能会出错吗?

更新:我实际上收到以下错误:

2>EnsureAdminPrivileges : Not running as administrator. You need to run Visual Studio with administrator privileges

这很奇怪,因为我已经以管理员身份启动了VS。

就我而言,解决方案是我首先需要关闭Visual Studio以管理员身份运行它

解决烦人的错误的非常简单的解决方案。

我在VS17 RC中有此错误,也无法确定是否在群集上安装了该应用程序 似乎本地集群的部署存在一些问题。

对我来说解决的是从Visual Studio安装程序运行修复

修复后,群集按预期部署,并且没有其他错误消息。

暂无
暂无

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

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