问题描述
我已经建立了一个系统,其中viewstate将保存到Appfabric缓存中。这在本地完美运行,但在每次请求时都会在开发环境中遇到以下错误:
I have set up a system where the viewstate would be saved to Appfabric caching. This works perfectly locally but hits the following error in the development environment on every request:
消息
ErrorCode:SubStatus:连接已终止,可能是由于服务器或网络问题或序列化对象大小大于服务器上的MaxBufferSize。请求结果未知。
来源
Microsoft.ApplicationServer.Caching.Client
目标网站
Void ThrowException(Microsoft.ApplicationServer.Caching.ResponseBody)
堆栈跟踪
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)
at CarFlowManager.AppFabricViewstatePersister.Save()in C:\inetpub\wwwroot \ CarFlowManager2010 \CarFlowManager \Classes \ AppFabricViewstatePersister.vb:30行
在System.Web.UI.Pa System.Web.UI.Page.TrocessAllState()的$。$
。System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,Boolean includeStagesAfterAsyncPoint)
$
ToString()
Microsoft.ApplicationServer.Caching.DataCacheException:ErrorCode:SubStatus:The connection终止,可能是由于服务器或网络问题或序列化对象大小大于服务器上的MaxBufferSize。请求的结果是未知的。
$
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)
at CarFlowManager.AppFabricViewstatePersister.Save()in C:\inetpub \wwwroot \ CarFlowManager2010 \CarFlowManager \Classes \\ AppFabricViewstatePersister.vb:30行
在System.Web.UI.Page.SavePageStateToPersistenceMedium(对象状态)
at System.Web.UI.Page.SaveAllState()(布尔includeStagesBeforeAsyncPoint,布尔includeStagesAfterAsyncPoint)
Message
ErrorCode:SubStatus: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.
Source
Microsoft.ApplicationServer.Caching.Client
Target site
Void ThrowException(Microsoft.ApplicationServer.Caching.ResponseBody)
Stack trace
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)
at CarFlowManager.AppFabricViewstatePersister.Save() in C:\inetpub\wwwroot\CarFlowManager2010\CarFlowManager\Classes\AppFabricViewstatePersister.vb:line 30
at System.Web.UI.Page.SavePageStateToPersistenceMedium(Object state)
at System.Web.UI.Page.SaveAllState()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
ToString()
Microsoft.ApplicationServer.Caching.DataCacheException: ErrorCode:SubStatus: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)
at CarFlowManager.AppFabricViewstatePersister.Save() in C:\inetpub\wwwroot\CarFlowManager2010\CarFlowManager\Classes\AppFabricViewstatePersister.vb:line 30
at System.Web.UI.Page.SavePageStateToPersistenceMedium(Object state)
at System.Web.UI.Page.SaveAllState()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
我有试着增加t他使用缓冲区大小
I have tried increasing the buffer size using
<transportProperties maxBufferPoolSize="xxxxxx" maxBufferSize="xxxxxxx"/>
推荐答案
这篇关于序列化对象大小大于服务器上的MaxBufferSize。请求的结果未知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!