Search code examples
cachingazureazure-caching

Cant get Azure Cache to work. "There is a temporary failure. Please retry later."


So, today I

  1. installed the azure SDK 2.1, and
  2. created a new project With a single WorkerRole,
  3. got the Caching package using NuGet,
  4. set the caching for the role to "Collocated"
  5. Set the Host to "WorkerRole1" in the app.config
  6. commented the security section since this is only a test
  7. inserted the following line on the "Run" `DataCache c = new DataCacheFactory().GetDefaultCache();
  8. Hit Debug

and got this error trying to execute the line above:

There is a temporary failure. Please retry later. (One or more specified cache servers are unavailable, which could be caused by busy network or servers. For on-premises cache clusters, also verify the following conditions. Ensure that security permission has been granted for this client account, and check that the AppFabric Caching Service is allowed through the firewall on all cache hosts. Also the MaxBufferSize on the server must be greater than or equal to the serialized object size sent from the client.)

I looked around a lot (for about 5 hours) and found no explanation for this... Can anyone help?


Solution

  • I installed the older version of the SDK (versions 1.8 and 2.0) and now its working... go figure...