Apache Ignite:No 在 cache.Get 上从 .net 框架应用找到对象 NonRandomizedStringEqualityComparer 的匹配类型
Apache Ignite:No matching type found for object NonRandomizedStringEqualityComparer on cache.Get from .net framework app
我使用的是 Apache ignite 版本 2.7.5。并使用 .net 核心作为服务器和瘦客户端。
缓存配置,键为字符串,值为模型 class,例如 Employee.And 此模型 class 具有包括字典数据类型字段的属性。
我正在从目标平台为 .net 框架的应用程序执行获取记录并将其放入缓存中。
在我的 .net core(v2.2.103) 客户端 Load() 方法中返回结果,但在调用方应用程序中出现以下异常。
{"No matching type found for object [typeId=596790889,
typeName=System.Collections.Generic.NonRandomizedStringEqualityComparer].
This usually indicates that assembly with specified type is not loaded
on a node. When using Apache.Ignite.exe, make sure to load assemblies
with -assembly parameter. Alternatively, set
IgniteConfiguration.PeerAssemblyLoadingEnabled to true."}
谁能给点建议,如何解决这个异常。
我认为您的 .Net 版本不匹配 - 一个使用 NonRandomizedStringEqualityComparer 作为其词典的比较器,另一个没有这种类型。
请查看此相关的 .Net 核心错误:https://github.com/dotnet/corefx/issues/26033
Ignite 可能会自行错误地处理此类词典,但我不确定重现的步骤是什么。现在的建议是确保您在所有地方都使用完全相同的 .Net 运行时版本。
我使用的是 Apache ignite 版本 2.7.5。并使用 .net 核心作为服务器和瘦客户端。 缓存配置,键为字符串,值为模型 class,例如 Employee.And 此模型 class 具有包括字典数据类型字段的属性。
我正在从目标平台为 .net 框架的应用程序执行获取记录并将其放入缓存中。
在我的 .net core(v2.2.103) 客户端 Load() 方法中返回结果,但在调用方应用程序中出现以下异常。
{"No matching type found for object [typeId=596790889, typeName=System.Collections.Generic.NonRandomizedStringEqualityComparer]. This usually indicates that assembly with specified type is not loaded on a node. When using Apache.Ignite.exe, make sure to load assemblies with -assembly parameter. Alternatively, set IgniteConfiguration.PeerAssemblyLoadingEnabled to true."}
谁能给点建议,如何解决这个异常。
我认为您的 .Net 版本不匹配 - 一个使用 NonRandomizedStringEqualityComparer 作为其词典的比较器,另一个没有这种类型。
请查看此相关的 .Net 核心错误:https://github.com/dotnet/corefx/issues/26033
Ignite 可能会自行错误地处理此类词典,但我不确定重现的步骤是什么。现在的建议是确保您在所有地方都使用完全相同的 .Net 运行时版本。