ViewState Warning - Question.
Posted: Thu Apr 20, 2017 3:55 am
Hello,
We have two sites with nearly identical code bases. In the error log for one of them we receive continual warnings for the ViewState size for a handful of pages. The other site does not receive these warnings.
I see a key value in the ablecommerce.config: <item key="ViewStateWarningSize" value="0" />
Currently, this is the same in both sites: value = 0. I can change that value in the site that receives the warnings and the warnings will not be logged if the ViewState is below it as expected, but in the site where the warnings are not thrown the value = 0 and nothing is logged. Note: The ViewState in the site that does not throw the error is smaller than the one that does.
The config change would be an acceptable answer as the ViewStates are not overly large to begin with, but it begs the question: what other configuration could keep the warnings from being entered into the log?
Thank you.
We have two sites with nearly identical code bases. In the error log for one of them we receive continual warnings for the ViewState size for a handful of pages. The other site does not receive these warnings.
I see a key value in the ablecommerce.config: <item key="ViewStateWarningSize" value="0" />
Currently, this is the same in both sites: value = 0. I can change that value in the site that receives the warnings and the warnings will not be logged if the ViewState is below it as expected, but in the site where the warnings are not thrown the value = 0 and nothing is logged. Note: The ViewState in the site that does not throw the error is smaller than the one that does.
The config change would be an acceptable answer as the ViewStates are not overly large to begin with, but it begs the question: what other configuration could keep the warnings from being entered into the log?
Thank you.