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(在 Windows 10 运行 in Parallels through OS X 中)并根据说明执行了此操作:
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Force -Scope CurrentUser
我以管理员和正常身份开始了 Visual Studio 2015。然后我启动了教程应用程序,但出现以下错误:
The PowerShell script failed to execute. See the Output window for details.
输出 window 只是给出了这个:
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...
我在 VS17 RC 中遇到了这个错误,无法确定该应用程序是否安装在集群上。好像本地集群部署有问题
为我解决的是运行从Visual Studio设置修复。
修复后,集群按预期部署,我没有更多的错误消息。
就我而言,解决方案是 我首先需要以管理员身份关闭 Visual Studio 和 运行。
非常简单的解决恼人错误的方法。
我正在做 Service Fabric 教程,可以在这里找到:
https://azure.microsoft.com/en-us/documentation/articles/service-fabric-create-your-first-application-in-visual-studio/
我以管理员身份启动了 PowerShell(在 Windows 10 运行 in Parallels through OS X 中)并根据说明执行了此操作:
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Force -Scope CurrentUser
我以管理员和正常身份开始了 Visual Studio 2015。然后我启动了教程应用程序,但出现以下错误:
The PowerShell script failed to execute. See the Output window for details.
输出 window 只是给出了这个:
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...
我在 VS17 RC 中遇到了这个错误,无法确定该应用程序是否安装在集群上。好像本地集群部署有问题
为我解决的是运行从Visual Studio设置修复。
修复后,集群按预期部署,我没有更多的错误消息。
就我而言,解决方案是 我首先需要以管理员身份关闭 Visual Studio 和 运行。
非常简单的解决恼人错误的方法。