You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

验证Azure环境中服务器是否属于Service Fabric集群时遇FabricClient.dll缺失错误的求助

验证Azure环境中服务器是否属于Service Fabric集群时遇FabricClient.dll缺失错误的求助

各位好,我现在碰到个棘手的问题想请教大家:我需要检查某台特定服务器是否属于Azure Service Fabric集群,于是写了个简单的测试程序,代码如下:

private static async Task Main()
{
    try
    {
        var Client = new FabricClient();
        var NodeList = await Client.QueryManager.GetNodeListAsync();
        foreach (var Node in NodeList)
        {
            Console.WriteLine($"Node Name: {Node.NodeName}, Node Status: {Node.NodeStatus}");
        }
    }
    catch (Exception Ex)
    {
        Console.WriteLine($"Error: {Ex.Message}");
        Console.ReadLine();
    }
}

我的应用已经编译为64位,并且安装了Microsoft.ServiceFabric NuGet包,但运行时却抛出了这个错误:

Error: Unable to load DLL 'FabricClient.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

我检查了应用的依赖文件,发现里面有System.Fabric.dll,但确实没有FabricClient.dll。我现在有点懵:是Service Fabric的依赖机制最近有变化吗?还是我漏装了什么关键组件?有没有人知道我该从哪里获取FabricClient.dll?

我也搜过其他相关的帖子,大家都建议安装对应的NuGet包,但我已经装了,问题还是没解决,程序一运行就因为找不到这个DLL报错。实在没辙了,来这里求大家给点思路!

内容来源于stack exchange

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.08 10:33:02