We have an custom web part that stores some information in the view state, and uses Update Panels.
We have rare, intermittent bug that occurs in SharePoint 2013 only whereby sometimes, after button click (that should trigger a partial refresh via an Updatepanel), the page goes back to its initial state.
We were able to reproduce the bug by stopping/starting the distributed cache service while working with the page.
So, first of all, is this likely the culprit, and second, is it possible to disable the ViewStateCache for a web application?
This is end user webpart which has dynamic controls on the form for configuration purpose. To maintain the state of dynamic controls across page post back we are using the ViewState.
To fix the error, we had increase the Request Timeout limit for the relevant cache using the following commands.
$ViewStateCache = Get-SPDistributedCacheClientSetting -ContainerType DistributedViewStateCache $ViewStateCache.RequestTimeout = 300 Set-SPDistributedCacheClientSetting -ContainerType DistributedViewStateCache -DistributedCacheClientSettings $ViewStateCache
The above commands won’t help us to resolve the problem. So if anybody came across the such issue then help appreciated to resolve this issue.