Click here to Skip to main content
15,895,011 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
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.

C#
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
}
}
}</es0006></errca0017>
Posted
Updated 4-Jul-12 2:10am
v2

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900