<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>State Management</title><link>http://forums.asp.net/22.aspx</link><description>Managing ASP.NET state - ViewState, Application, Session, etc. &lt;a href="http://aspadvice.com/SignUp/list.aspx?l=69&amp;c=17" target="_blank"&gt;Email List&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: ViewStateException Invalid ViewState</title><link>http://forums.asp.net/thread/1522650.aspx</link><pubDate>Mon, 08 Jan 2007 13:56:19 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1522650</guid><dc:creator>addamse</dc:creator><author>addamse</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1522650.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=1522650</wfw:commentRss><description>&lt;p&gt;Thanks for your response joteke.&amp;nbsp; It gave me idea with the&amp;nbsp;viewstate size suggestion you posted.&amp;nbsp; I think I found the cause of the issue.&amp;nbsp; It turns out that two the web controls (literals) that had viewstate enabled were receiving massive amounts of data for a particular case on the website (hence this was causing a very large viewstate).&amp;nbsp; I decided to disable the&amp;nbsp;viewstate and hit the database to retrieve the data each load of the page from the db rather than store this data in the viewstate.&amp;nbsp; This appears to have reduced the issue greatly.&amp;nbsp; &lt;/p&gt;</description></item><item><title>Re: ViewStateException Invalid ViewState</title><link>http://forums.asp.net/thread/1513701.aspx</link><pubDate>Sun, 31 Dec 2006 08:58:52 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1513701</guid><dc:creator>joteke</dc:creator><author>joteke</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1513701.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=1513701</wfw:commentRss><description>&lt;p&gt;You probably have seen this one: &lt;a href="http://west-wind.com/weblog/posts/2588.aspx"&gt;http://west-wind.com/weblog/posts/2588.aspx&lt;/a&gt;&amp;nbsp;(see the link&amp;nbsp;to MS support KB on&amp;nbsp;it) however with ASP.NET 2.0 sometimes it hashelped when one sets the max length of single viewstate field in web.config&amp;nbsp;to smaller. For example&lt;/p&gt;
&lt;p&gt;&lt;font face="courier new,courier"&gt;&amp;lt;pages maxPageStateFieldLength="8192" /&amp;gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;where 8192 is maximum number of characters for the state field. If entire state size is larger than this, state is separated into chunks where each chunk is less than 8192 characters. E.g it spans it to multiple viewstate fields. Default is -1 when no spanning happens.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>ViewStateException Invalid ViewState</title><link>http://forums.asp.net/thread/1512695.aspx</link><pubDate>Fri, 29 Dec 2006 19:27:36 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1512695</guid><dc:creator>addamse</dc:creator><author>addamse</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1512695.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=1512695</wfw:commentRss><description>&lt;pre class=WNPost style="WORD-WRAP:break-word;"&gt;My ASP.NET 2.0 web application is generating the following errors several times a day:&lt;/pre&gt;&lt;pre class=WNPost style="WORD-WRAP:break-word;"&gt;1) System.Web.HttpException: The client disconnected. ---&amp;gt; System.Web.UI.ViewStateException: Invalid viewstate.&lt;/pre&gt;&lt;pre class=WNPost style="WORD-WRAP:break-word;"&gt;2) System.Web.HttpException: The state information is invalid for this page and might be corrupted. ---&amp;gt; System.Web.UI.ViewStateException: Invalid viewstate. &lt;/pre&gt;&lt;pre class=WNPost style="WORD-WRAP:break-word;"&gt;I cannot find any information on Viewstate Verfication and am not sure why this error is occuring.&amp;nbsp; Also I am not sure if the user actually receives an error or is allowed to continue through the website.&amp;nbsp; A wide variety of user-agents are receiving this message.&amp;nbsp; I have attempted disabling the enableViewStateMac in the web.config, but this did not eliminate the error.&amp;nbsp; The application environment is a Windows Server 2003 with IIS 6.0.&amp;nbsp; The application is not running in a web farm.  Any help is greatly appreciated.

Thanks in advance.&lt;/pre&gt;</description></item></channel></rss>