I'm planning on using CacheManager (http://cachemanager.michaco.net/) and has been trying to set it to work with CacheManager.Serialization.Json. It requires Newtonsoft.Json (>= 8.0.3).
I've Newtonsoft.Json 9.0.1 installed via NuGet. This is excerpt of my web.config
<cache name="redisWithBackplane" updateMode="Up" enableStatistics="false"
enablePerformanceCounters="false" backplaneName="localRedis" backplaneType="CacheManager.Redis.RedisCacheBackplane, CacheManager.StackExchange.Redis"
serializerType="CacheManager.Serialization.Json.JsonCacheSerializer, CacheManager.Serialization.Json">
<handle name="localRedis" ref="redisHandle" expirationMode="None" timeout="50s" isBackplaneSource="true" />
and binding redirect in the same web.config
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-9.0.0.0" newVersion="9.0.0.0" />
</dependentAssembly>
</assemblyBinding>
I'm getting error "Could not load file or assembly 'Newtonsoft.Json, Version=8.0.0.0" and once I replace Newtonsoft.Json to version 8.0.0, it started working. The binding redirect does not seems to have any effect. Any idea. What could be wrong?