Friday, August 17, 2012

Could not load file or assembly 'Microsoft.ApplicationServer.Caching.Client, Version=1.0.0.0

Azure error ApplicationServer.Caching.Client, Version=1.0.0.0 !











solved it!
The version I had in my dev box was ApplicationServer.Caching.Client, Version=101.0.0.0
but some other dll is asking for 1.0 version, which one?

These three seems to be connected :
1) Microsoft.ApplicationServer.Caching.Client
2) Microsoft.ApplicationServer.Caching.Core
3) Microsoft.Web.DistributedCache.dll

My problem was with Microsoft.Web.DistributedCache.dll !
It had 1.0.0.0 version and naturally it requires ApplicationServer.Caching.Client to be 1.0 as well. I changed DistributedCache.dll to version 101 and it worked !

if you still have issue or similar dll mismatch issues, check this out for the step by step approach.

For deployment related errors we can quickly check this by copying the dlls from local dev machine to azure directly through rdp. Redeploying takes time(to try out). Ofcourse we need to update the deployment for the next deployment.

To copy dll : Azure management portal ->instances->connect button.

comment your thoughts please



2 comments:

  1. Any news, if Microsoft fixed this problem? Or when are they? It`s the issue, stopping me from releasing :(

    ReplyDelete
    Replies
    1. What error are you getting? are you using Caching Preview or App fabric caching? Which SDK?

      Delete