Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
Hello,
 
I am getting this error "ErrorCode:SubStatus: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
}
}
}</es0006></errca0017>
Posted 4-Jul-12 2:07am
Edited 4-Jul-12 2:10am
v2

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  

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

  Print Answers RSS
0 Maciej Los 225
1 OriginalGriff 140
2 Sergey Alexandrovich Kryukov 137
3 _Amy 115
4 manoj kumar choubey 115
0 OriginalGriff 7,320
1 Sergey Alexandrovich Kryukov 6,043
2 Maciej Los 3,749
3 Peter Leow 3,408
4 DamithSL 2,555


Advertise | Privacy | Mobile
Web03 | 2.8.140721.1 | Last Updated 9 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100