I have upgraded my Azure Storage DLL from version 2.1 to 3.1. I have a cache storage on Azure and I am not able to make it work with the new version of Storage 3.1.0.1. I'm getting a MethodAccessException
when trying to create an instance of DataCacheFactoryConfiguration
. My code:
var conf = new DataCacheFactoryConfiguration("myconfig"); //exception here
var cacheFactory = new DataCacheFactory(conf);
_dataCache = cacheFactory.GetCache("mycache");
The web.config
section is well configured. I don't know if I am missing something on how to access the cache with the new version of azure storage. I'm not able to find a solution. Thanks in advance
UPDATE: The problem is not related with the DLL version, I've tried it in another machine and it worked. I think that the machine that's causing the problem has too many references to too many versions of Azure SDK. Thanks for your help.