Could not load file or assembly Microsoft.ApplicationServer.Caching.Core

Viewed 6888

I'm trying to use Windows Azure Caching Preview.

I have one dedicated cache worker role, One webrole that use the former cache, and one worker role that continuously update cache.

I followed the instructions on the Windows Azure guide but I still get an error :

Could not load file or assembly 'Microsoft.ApplicationServer.Caching.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

I double triple 1000000 checked dependencies, there are correct. I noticed there were two sets of dlls : the ones version 1.0.0.0 I want to use, and another version 101.0.0.0 I don't want. I added BindingRedirect statement to all my .config files to map 101 versions to 1.0.0.0 I checked the \bin folder, decompiled the dlls with Jetbrains, they are correct. I begin to lose patience. Why doesn't .NET take the DLL I specify when I put the explicit path ?

3 Answers
Related