找不到服务结构FabricRuntime.dll [英] Service Fabric FabricRuntime.dll not found

查看:52
本文介绍了找不到服务结构FabricRuntime.dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图升级到ne版本的Service Fabric预览代码-1.4.87-preview-一切似乎都正常,但是当我尝试部署服务时,运行时出现异常提示我它找不到FabricRuntime.dll.这适用于我的升级项目,新创建的测试项目以及所有示例.

I have tried to upgrade to the ne version of the Service Fabric preview code - 1.4.87-preview - and everything seems to have gone ok, but when I try to deploy a service I get an exception on run telling me that it cannot find FabricRuntime.dll. This goes both for my upgraded project, for newly created test projects and for all samples.

我可以看到该DLL存在于计算机上,并且系统PATH已设置为包含该DLL的目录.

I can see that the DLL is present on the machine and that a system PATH has been set to the directory containing it.

我的应用程序本身似乎没有什么问题,因为它们可以很好地部署到Party Cluster.

There seems to be nothing wrong with my applications per se, as they deploy fine to a Party Cluster.

任何人都知道发生了什么事.当我运行旧的Service Fabric安装时,一切工作正常.我曾尝试卸载服务结构并再次安装,但这没有帮助.

Anybody have any idea what is going on. Everything worked fine when I ran the old Service Fabric install. I have tried uninstalling service fabric and installing again, but it didn't help.

推荐答案

答案现已发布在MSDN论坛上,网址为

The answer is now posted on MSDN forums at https://social.msdn.microsoft.com/Forums/azure/en-US/6c8cc261-6c84-4097-be03-e8073cbc9397/unable-to-load-dll-fabricruntimedll?forum=AzureServiceFabric&prof=required

MSDN论坛答案的副本:

Copy of answer from MSDN Forum:

之所以发生这种情况,是因为FabricRuntime.dll正在寻找Service Fabric运行时附带的zip.dll.但是,由于JRE在PATH列表中位于前面,并且还附带了zip.dll,因此FabricRuntime尝试从JRE文件夹加载zip.dll并失败.我们通过重命名DLL来解决此问题.该修补程序将在SDK的下一个更新中可用.同时,您可以通过添加"C:\ Program Files \ Microsoft Service Fabric \ bin \ Fabric \ Fabric.Code"作为系统路径中的第一项,然后重新启动计算机来解决此问题.

This is happening because FabricRuntime.dll is looking for zip.dll that ships with Service Fabric runtime. However since JRE is ahead in the PATH list and it also ships with a zip.dll, FabricRuntime tries to load zip.dll from the JRE folder and fails. We have fixed this issue by renaming our DLLs. The fix will be available in the next update of the SDK. In the meanwhile, you can fix this by adding "C:\Program Files\Microsoft Service Fabric\bin\Fabric\Fabric.Code" as the first entry in the system path and then restarting the machine.

这篇关于找不到服务结构FabricRuntime.dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆