I am getting this error "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. Also the MaxBufferSize on the server must be greater
than or equal to the serialized object size sent from the client.)".
This error only happens when my query returns more than 500+ rows of data. Everything is successfully fetched when query returns less than -300 rows.
using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Diagnostics;
using Microsoft.ApplicationServer.Caching;
public class Store
{
public static DataCacheFactory dataCacheFactory = new DataCacheFactory();
public static DataCacheFactoryConfiguration dataCacheFactoryConfiguration = new DataCacheFactoryConfiguration();
public static DataCache dataCache;
public Store()
{
dataCacheFactoryConfiguration = new DataCacheFactoryConfiguration {
ChannelOpenTimeout = new TimeSpan(0, 10, 0),
RequestTimeout = new TimeSpan(0, 10, 0)
};
dataCacheFactory = new DataCacheFactory(dataCacheFactoryConfiguration);
dataCache = dataCacheFactory.GetDefaultCache();
StoreCacheRecord();
}
public void StoreCacheRecord()
{
if (dataCache.Get("cache-key") == null) {
dataCache.Put("cache-key", "Record has more than 500+ rows", TimeSpan.FromSeconds(1200)); //<--error
}
}
}
imperialx
Member
523 Points
1220 Posts
Azure Fabric Caching Error
Jun 20, 2012 04:36 PM|LINK
Hello,
I am getting this error "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. Also the MaxBufferSize on the server must be greater than or equal to the serialized object size sent from the client.)".
This error only happens when my query returns more than 500+ rows of data. Everything is successfully fetched when query returns less than -300 rows.
using System; using System.Collections; using System.Collections.Generic; using System.Data; using System.Diagnostics; using Microsoft.ApplicationServer.Caching; public class Store { public static DataCacheFactory dataCacheFactory = new DataCacheFactory(); public static DataCacheFactoryConfiguration dataCacheFactoryConfiguration = new DataCacheFactoryConfiguration(); public static DataCache dataCache; public Store() { dataCacheFactoryConfiguration = new DataCacheFactoryConfiguration { ChannelOpenTimeout = new TimeSpan(0, 10, 0), RequestTimeout = new TimeSpan(0, 10, 0) }; dataCacheFactory = new DataCacheFactory(dataCacheFactoryConfiguration); dataCache = dataCacheFactory.GetDefaultCache(); StoreCacheRecord(); } public void StoreCacheRecord() { if (dataCache.Get("cache-key") == null) { dataCache.Put("cache-key", "Record has more than 500+ rows", TimeSpan.FromSeconds(1200)); //<--error } } }Thank You,
-imperialx
mandarj123
Member
708 Points
291 Posts
Re: Azure Fabric Caching Error
Jul 19, 2012 09:11 AM|LINK
Check out your cache size it may not have enough size to put the data you are trying to.
increasing it maybe the solution.
Capgemini India.