[英]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. TypeLoadException
和MethodMissingException
错误指示从一起使用较旧版本的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.