small doubt in AppFabric
-
Thursday, August 30, 2012 9:59 AM
hi ,
im trying to put 5000 records to appfabric cache object. but im always getting below error
{Microsoft.ApplicationServer.Caching.DataCacheException: ErrorCode<ERRCA0016>:SubStatus<ES0001>:The connection was terminated, possibly due to server or network problems or serialized Object size is greater than MaxBufferSize on server. Result of the request is unknown.
at Microsoft.ApplicationServer.Caching.DataCache.ThrowException(ResponseBody respBody)
at Microsoft.ApplicationServer.Caching.DataCache.ExecuteAPI(RequestBody reqMsg)
at Microsoft.ApplicationServer.Caching.DataCache.InternalPut(String key, Object value, DataCacheItemVersion oldVersion, TimeSpan timeout, DataCacheTag[] tags, String region)
at Microsoft.ApplicationServer.Caching.DataCache.Put(String key, Object value, TimeSpan timeout)
at AppFabricWebApplication.Cache.DataCache.GetCachedNameFineCode() in D:\...\DataCache.aspx.cs:line 92}i bing it, everybody is saying we have to change the maxbuffersize like this http://social.msdn.microsoft.com/Forums/en-US/velocity/thread/975bb18e-3402-4251-bd10-dd084e5f308f and http://social.msdn.microsoft.com/Forums/eu/velocity/thread/6ed4d930-83a9-4e9f-86e0-680ae0e75c0a
i tried in many ways but, no solution yet. below is my web.config file entry
<configSections> <section name="dataCacheClient" type="Microsoft.ApplicationServer.Caching.DataCacheClientSection, Microsoft.ApplicationServer.Caching.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> </configSections> <dataCacheClient requestTimeout="15000" channelOpenTimeout="3000" maxConnectionsToServer="1"> <clientNotification pollInterval="300" maxQueueLength="10000"/> <hosts> <host name="machine1" cachePort="22233" /> <host name="machine2" cachePort="22233" /> </hosts> <securityProperties mode="Transport" protectionLevel="EncryptAndSign" /> <transportProperties connectionBufferSize="131072" maxBufferPoolSize="2147483647" maxBufferSize="2147483647" maxOutputDelay="2" channelInitializationTimeout="900000" receiveTimeout="900000"/> </dataCacheClient>
below is my cluster xml file configuration
<?xml version="1.0" encoding="utf-8"?> <configuration> <configSections> <section name="dataCache" type="Microsoft.ApplicationServer.Caching.DataCacheSection, Microsoft.ApplicationServer.Caching.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> </configSections> <dataCache size="Small"> <caches> <cache consistency="StrongConsistency" name="Lab1Cache"> <policy> <eviction type="Lru" /> <expiration defaultTTL="10" isExpirable="true" /> </policy> </cache> </caches> <hosts> <host replicationPort="22236" arbitrationPort="22235" clusterPort="22234" hostId="431833237" size="15000" leadHost="true" account="Domain\Machine1$" cacheHostName="AppFabricCachingService" name="Machine1" cachePort="22233" /> <host replicationPort="22236" arbitrationPort="22235" clusterPort="22234" hostId="1716161766" size="15000" leadHost="false" account="Domain\Machine2$" cacheHostName="AppFabricCachingService" name="Machine2" cachePort="22233" /> </hosts> <advancedProperties> <securityProperties> <authorization> <allow users="Machine1\Administrator" /> </authorization> </securityProperties> <transportProperties maxBufferPoolSize="2147483647" maxBufferSize="2147483647" channelInitializationTimeout="900000" receiveTimeout="900000" /> </advancedProperties> </dataCache> </configuration>
im always getting error while put data.
experts please tell me what is the issue and how to resolve it?
Thanks In Advance, Jeyaseelan
- Moved by Ben Cline1MVP, Moderator Tuesday, September 04, 2012 8:30 PM related to AF caching (From:AppFabric Service and Workflow Management)

