We updated our ServiceStack Redis client to the newest one on Nuget, and we started getting a lot of these errors:
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.Collections.Generic.List`1.get_Item(Int32 index)
at ServiceStack.Redis.RedisManagerPool.GetClient()
at ServiceStack.Redis.RedisClientManagerCacheClient.Get[T](String key)
Any idea why are we getting this issue?
Thanks
Hi Ron, this should be resolved with the latest version on MyGet: https://github.com/ServiceStack/ServiceStack/wiki/MyGet
Ron Rejwan:
Demis hey thanks for sharing, are there any other known issues we should be aware of? Also, how can I revert back to an older version of the RedisClient? Thanks!
No that’s the only known redis issue that was resolved since last release. You can also switch the PooledRedisClientManager.
You can use NuGet commands to uninstall a NuGet package with:
Uninstall-Package ServiceStack.Redis
or force uninstall with:
Uninstall-Package ServiceStack -Force
Just use the standard nuget -Version xxx
modifier. I wrote somes docs on installing, uninstalling and updating specific NuGet versions earlier at:
https://github.com/ServiceStackV3/ServiceStackV3#nuget