您的位置:首页 > 移动开发

Windows Server appfabric exception ErrorCode<ERRCA0016>:SubStatus<ES0001>

2012-05-16 14:57 501 查看
Appfabric exception:

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.

解决方法:

Case 1: 在缓存大对象时导致此异常,需要在客户端和服务端设置maxBufferSize

客户端

<dataCacheClient requestTimeout="15000" channelOpenTimeout="3000" maxConnectionsToServer="1">

<localCache isEnabled="true" sync="TimeoutBased" ttlValue="300" objectCount="10000"/>

<clientNotification pollInterval="300" maxQueueLength="10000"/>

<hosts>

<host name="CacheServer1" cachePort="22233"/>

<host name="CacheServer2" cachePort="22233"/>

</hosts>

<securityProperties mode="Transport" protectionLevel="EncryptAndSign" />

<transportProperties maxBufferPoolSize="268435456" maxBufferSize="8388608" />

</dataCacheClient>

服务端:

<advancedProperties>

<transportProperties maxBufferPoolSize="268435456" maxBufferSize="8388608" />

</advancedProperties>

Case 2: 在根本就没存取缓存对象时,就抛出该异常

是因为客户端无法解析appfabric服务的机器名,尽管在config里配置的是appfabric server的IP地址。

解决方式是在C:\WINDOWS\system32\drivers\etc\hosts里加上appfabric机器名和IP的映射。

192.168.0.6 ServerName
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐