简体   繁体   English

方法在Servicestack Redis中没有实现

[英]Method does not have implementation in servicestack redis

I'm getting the following message after upgrade to new version of Servicestack.redis (our code dosen't call directly to redis native client) Method "Migrate" in type "ServiceStack.Redis.RedisNativeClient" from assembly "ServiceStack.Redis, Version=4.0.33.0, Culture=neutral, PublicKeyToken=null" does not have an implementation. 升级到新版本的Servicestack.redis后,我收到以下消息(我们的代码未直接调用redis本机客户端)程序集“ ServiceStack.Redis,版本”中“ ServiceStack.Redis.RedisNativeClient”类型中的方法“ Migrate” = 4.0.33.0,文化=中性,PublicKeyToken =空”没有实现。

Any help will be appriciated 任何帮助将被申请

TypeLoadException and MethodMissingException errors are indicative of using dirty dlls from using older versions of ServiceStack together. TypeLoadExceptionMethodMissingException错误指示从一起使用较旧版本的ServiceStack到使用脏dll。

Make sure that all NuGet packages are updated, if the issues persist delete the NuGet /packages folder and download the NuGet packages again, checking to make sure that only it only references ServiceStack packages with the same version number , updating any projects that reference any old NuGet package versions. 确保所有NuGet软件包都已更新,如果问题仍然存在,请删除NuGet /packages文件夹,然后再次下载NuGet软件包,并检查以确保仅它引用了具有相同版本号的 ServiceStack软件包,并更新任何引用了旧版本的项目。 NuGet软件包版本。

Looks like you updated ServiceStact which have IRedisNativeClient interface with Migrate method and using older version of ServiceStack.Redis which implements IRedisNativeClient interface in RedisNativeClient . 看起来您更新了ServiceStact ,它具有使用Migrate方法的IRedisNativeClient接口,并使用较旧的ServiceStack.Redis版本,该版本在RedisNativeClient中实现IRedisNativeClient接口。 As you can see in github RedisNativeClient implements required method. 如您在github中所见,RedisNativeClient实现了必需的方法。 So try to update ServiceStack.Redis. 因此,尝试更新ServiceStack.Redis。

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

相关问题 类型'ServiceStack.JsonServiceClient'中的方法'Get'…没有实现 - Method 'Get' in type 'ServiceStack.JsonServiceClient' … does not have an implementation 方法“CommonCreateArrayTypeSymbol”没有实现 - Method 'CommonCreateArrayTypeSymbol' does not have an implementation ServiceStack Redis如何在检索数据中起作用 - How does ServiceStack Redis function in retrieving data servicestack.redis不保存字典属性 - servicestack.redis does not save Dictionary Property EF Core:方法“ProcessModelFinalized”没有实现 - EF Core: Method 'ProcessModelFinalized' does not have implementation dotnet core方法'ValidateOptions'...没有实现 - dotnet core Method 'ValidateOptions' … does not have an implementation TypeLoadException方法“设置”没有实现 - TypeLoadException Method 'Set' does not have an implementation FakeItEasy异常方法没有实现 - FakeItEasy exception method does not have an implementation ServiceStack.Redis GetNextSequence调用将什么放入redis数据库中? - What does ServiceStack.Redis GetNextSequence call put into the redis database? ServiceStack“方法实现中引用的声明不能是最终方法” - ServiceStack “Declaration referenced in a method implementation cannot be a final method”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM