In past few days, I have noticed that several users hitting below mentioned error message, while adding large size of data to Windows Azure Cache
[DataCacheException: ErrorCode<ERRCA0017>:SubStatus<ES0006>: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.
aso the MaxBufferSize on the server must be greater than or equal to the serialized object size sent from the client.)]
This issue might be happed due to hitting the Windows Azure Cache limitation, where you can not add more than 8MB data at a time. The simple workaround for this issue is to split the object into smaller chunks, i.e you can serialize the object into smaller byte arrays
and pass the arrays to cache as multiple objects. The same limiatation is documented in below mentioned msdn article :
- API Reference for Windows Azure Caching
If the size is under 8MB, and you still receive the same error then please make sure to change the DataCacheFactoryConfiguration.TransportProperties.ReceiveTimeout to below 60 Seconds as mentioned in this blog post