Azure service fabric 调用服务结构中的远程服务时发生FileNotFoundException[本地]

Azure service fabric 调用服务结构中的远程服务时发生FileNotFoundException[本地],azure-service-fabric,service-fabric-on-premises,Azure Service Fabric,Service Fabric On Premises,我有一个关于在SF服务中抛出异常的问题——我有一个关于反序列化位于同一集群中的其他远程服务(但来自其他解决方案的其他服务类型)上的异常的问题。我曾尝试抛出自定义异常,但在反序列化方面遇到问题,并切换为抛出带有原始异常消息的简单异常类型,但在客户端从源服务查找库时仍然失败。我不知道为什么在抛出简单异常时远程服务会寻找这个库。当没有异常时,调用远程服务工作正常 我正在使用此链接中的解决方案 您能在抛出异常的地方发布代码示例吗?这与HelloWorldClient相同-简单的两行代码。接口被复制到客户

我有一个关于在SF服务中抛出异常的问题——我有一个关于反序列化位于同一集群中的其他远程服务(但来自其他解决方案的其他服务类型)上的异常的问题。我曾尝试抛出自定义异常,但在反序列化方面遇到问题,并切换为抛出带有原始异常消息的简单异常类型,但在客户端从源服务查找库时仍然失败。我不知道为什么在抛出简单异常时远程服务会寻找这个库。当没有异常时,调用远程服务工作正常

我正在使用此链接中的解决方案


您能在抛出异常的地方发布代码示例吗?这与HelloWorldClient相同-简单的两行代码。接口被复制到客户端服务(无二进制共享),仅此而已。服务器使用一个方法和作为参数的简单类型实现相同的服务(我在原始文章中添加了这个)。我最后忘记的一件事是,在本地集群上,它在部署到我们的SIT环境后工作并失败。
IMyService helloWorldClient = ServiceProxy.Create<IMyService>(new Uri("fabric:/MyApplication/MyHelloWorldService"));
string message = await helloWorldClient.Test("", "", DateTime.Now);

public interface IMyService : IService
{
   Task Test(string arg, string arg2, DateTime date);
}
Failed to deserialize and get remote exception  System.IO.FileNotFoundException: Could not load file or assembly 'XXX.ServiceFabricCommon, Version=6.60.3.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.  File name: 'XXX.ServiceFabricCommon, Version=6.60.3.0, Culture=neutral, PublicKeyToken=null'     at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)…