c# - Service Fabric Mesh 中的 Actor 不工作 - 无法加载 DLL FabricRuntime.dll

标签 c# azure azure-service-fabric

我正在研究 Service Fabric Mesh。到目前为止已构建了一个 ASP.NETCORE API 应用程序 - 运行良好。

现在我正在尝试在新项目中添加一个(预定的)Actor,如 this tutorial 中所述。 。一切都构建得很好,但在启动时我得到以下异常:

private static void Main()
{
try
{
   ActorRuntime.RegisterActorAsync<SchedulingActor>((context, actorType) => new SchedulingActorService<ISchedulingActor>(context, actorType)).Wait();
}
catch
{
    throw;
}
}

System.TypeInitializationException:“‘Microsoft.ServiceFabric.Actors.Runtime.ActorRuntime’的类型初始值设定项引发异常。”

InnerException:DllNotFoundException:无法加载 DLL“FabricRuntime.dll”或其依赖项之一:找不到指定的模块。

最佳答案

从最近announcement SF MESH 的负责人表示,MESH 尚不支持 Actor 框架,并将在未来版本中提供,因为它需要访问 MESH 中不可用的底层平台资源。

SF Mesh is a multi-tenant service and so does not allow any access to the underlying VMs and all the deployments into SF Mesh are in containers. Services using actors, have dependencies that need access to the Nodes, and so currently there is no easy way to deploy them to SF Mesh, however providing a way for the customers to migrate their services from the SF clusters to SF mesh is in the roadmap and is planned to land prior to GA.

PS:这是在页面底部的问答中说的。

关于c# - Service Fabric Mesh 中的 Actor 不工作 - 无法加载 DLL FabricRuntime.dll,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52592668/

相关文章:

c# - 如何解析 utc 日期

c# - 使用 iTextSharp 获取复选框的导出值

azure - 与 ADF 同步增量数据

azure - 尝试发布 Azure API。 VS2017似乎没有最新的Azure SDK

azure-service-fabric - Azure Service Fabric 部署期间测试失败

azure - 更新现有 Azure Service Fabric 群集的 WadCfg "only"?

azure-service-fabric - Service Fabric 可靠集合性能

c# - (以编程方式)比较 PDF 的可靠方法?

c# - 在自定义 TypeFormatter 中使用 RegisterWebApiRequest 时出现 SimpleInjector.ActivationException

c# - 将信息记录到 azure webjobs 日志文件中?