我在Visual Studio 2017(版本15.7.1)中创建了一个新的Service Fabric应用程序,并使用.Net Core 2.0有状态服务模板添加了一个新服务。当我尝试运行该服务时,它无法正确启动,我可以在诊断事件中看到以下异常:
“Replica had multiple failures during open on _Node_0. API call: IStatefulServiceReplica.ChangeRole(P);
错误=System.IO.FileNotFoundException (-2147024894) 无法加载文件或程序集'System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'。系统找不到指定的文件。”