[英]Azure Service Fabric deployment fails from VS 2015 RC
I'm getting the following error when deploying an Actor service from Visual Studio 2015, either via right clicking the Application project and selecting 'Deploy' or hitting F5: 从Visual Studio 2015部署Actor服务时出现以下错误,方法是右键单击“应用程序”项目,然后选择“部署”或单击F5:
Test-ServiceFabricApplicationPackage : The term 'Test-ServiceFabricApplicationPackage' is not recognized as the name of a cmdlet, function, script file, or operable program. Test-ServiceFabricApplicationPackage:术语“ Test-ServiceFabricApplicationPackage”不能识别为cmdlet,函数,脚本文件或可运行程序的名称。 Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
检查名称的拼写,或者是否包含路径,请验证路径是否正确,然后重试。
I'm running Windows Server 2012 R2. 我正在运行Windows Server 2012 R2。
I've tried running Import-Module "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\Modules\\ServiceFabric\\ServiceFabric.psd1", but always get the same error. 我尝试运行导入模块“ C:\\ Windows \\ System32 \\ WindowsPowerShell \\ v1.0 \\ Modules \\ ServiceFabric \\ ServiceFabric.psd1”,但始终会遇到相同的错误。
If I use PS to run the same script VS runs, the deployment works. 如果我使用PS运行与VS运行相同的脚本,则部署工作正常。
Any help would be greatly appreciated. 任何帮助将不胜感激。
Thanks, Rudy 谢谢,鲁迪
Try this 尝试这个
1) Go to c:\\SFDevCluster\\Log\\Traces. 1)转到c:\\ SFDevCluster \\ Log \\ Traces。 you will see one or more TRACE Files
您将看到一个或多个TRACE文件
2) Open the one that starts with FabricSetup-* using a text editor.it should tell you want is going wrong. 2)使用文本编辑器打开一个以FabricSetup- *开头的文件,它会告诉您您要出错了。
3) If the setup step was successful, then open the file that starts with fabricdeployer-*. 3)如果安装步骤成功,则打开以fabricdeployer- *开头的文件。 If you find multiple files, then start by opening the latest and work your way down.
如果找到多个文件,请先打开最新文件,然后逐步解决。
Can you try this: 你可以尝试一下:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.