简体   繁体   English

Service Fabric角色:使用最新版本的Service Fabric nuget包部署角色时出现的问题

[英]Service Fabric Actors: Problems when actors are deployed with newest versions of Service Fabric nuget packages

Yesterday I created a new service fabric application, including a new Actor. 昨天我创建了一个新的服务结构应用程序,其中包括一个新的Actor。 When I deploy it on my local service fabric cluster, the publish has a “succeeded” status. 当我将其部署到本地服务结构群集上时,发布状态为“成功”。 But the problem is when I go on the Service fabric cluster, I can see that the actor is on “Error” health state. 但是问题是当我进入Service Fabric群集时,可以看到参与者处于“错误”运行状况。 I can show you the error messages on the diagnostic events and the Server Fabric Explorer: 我可以向您显示有关诊断事件和Server Fabric Explorer的错误消息:

Service Fabric Cluster Explorer [IMAGE] 服务结构群集资源管理器[IMAGE]

Diagnostic Events errors [IMAGE] 诊断事件错误[IMAGE]

To show you my problem I created a simple solution with the usual actor example created by Visual Studio that should work properly. 为了向您展示我的问题,我使用应正常运行的Visual Studio创建的常规actor示例创建了一个简单的解决方案。 I created a .Net Core 2.0 Actor Service. 我创建了一个.Net Core 2.0 Actor服务。 Actor Service 演员服务

The nuget packages used by the actor are: actor使用的nuget包是:

  • Microsoft.ServiceFabric (6.2.274) Microsoft.ServiceFabric(6.2.274)

  • Microsoft.ServiceFabric.Actors (3.1.274) Microsoft.ServiceFabric.Actors(3.1.274)

  • Microsoft.ServiceFabric.Data (3.1.274) Microsoft.ServiceFabric.Data(3.1.274)

  • Microsoft.ServiceFabric.Services (3.1.274) Microsoft.ServiceFabric.Services(3.1.274)

My Visual Studio is on Version 15.7.2 and the Service Fabric runtime is on the latest version 6.2.274.9494 . 我的Visual Studio在15.7.2版上,而Service Fabric运行时在最新版6.2.274.9494上

I also have another solution with actors that works with nuget packages with previous versions that can be deployed and working on service fabric correctly. 我还为actor提供了另一个解决方案,该解决方案可以与具有早期版本的nuget软件包一起使用,这些软件包可以被部署并可以在服务结构上正常工作。

When I updated the service fabric package to the newest version, there were errors with the actors on the service fabric explorer. 当我将Service Fabric软件包更新为最新版本时,Service Fabric Explorer上的actor出现错误。 So I can deduce that these errors can be produced by the newest version of the service fabric nuget packages. 因此,我可以推断出这些错误可能是由服务结构nuget软件包的最新版本产生的。

Best Regards, 最好的祝福,

Alexandre 亚历山大(Alexandre)

This seems to be an issue with pre 2.0.5 version of .NET Core. .NET Core 2.0.5之前的版本似乎是一个问题。 Installing latest runtime (2.1.1 currently) and changing service fabric actor projects to use it fixed the issue. 安装最新的运行时(当前为2.1.1)并更改服务结构actor项目以使用它可以解决此问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM