<?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: Validation of viewstate MAC failed / The state information is invalid for this page and might be corrupted</title><link>http://forums.asp.net/thread/3459222.aspx</link><pubDate>Thu, 15 Oct 2009 06:14:57 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3459222</guid><dc:creator>hemant.yadav</dc:creator><author>hemant.yadav</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3459222.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3459222</wfw:commentRss><description>&lt;p&gt;hi everyone &lt;/p&gt;&lt;p&gt;i was getting the same error when i was running my program and left it idle for some time and when again refreshing the page i was the getting this error....&lt;/p&gt;&lt;p&gt;i read too many forum and find that the reason of this error. as Eilon has mention that it stored value in to Hidden field and in the encrypted format. after lefting it idle for few moment if we are refresh the content it will try to execute it with new key which is not match with the older one that&amp;#39;s why its producing this error.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Validation of viewstate MAC failed / The state information is invalid for this page and might be corrupted</title><link>http://forums.asp.net/thread/3349245.aspx</link><pubDate>Sat, 15 Aug 2009 08:26:43 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3349245</guid><dc:creator>Ben Teo</dc:creator><author>Ben Teo</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3349245.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3349245</wfw:commentRss><description>&lt;p&gt;One of my aspx page has 2 GridView. The 1st GridView has 2 TemplateField LinkButton columns. Clicking the 1st&amp;nbsp;LinkButton column will redirect to another page; clicking the 2nd LinkButton column will display data on the 2nd GridView.&lt;/p&gt;
&lt;p&gt;The following errors are encountered sometimes:&lt;/p&gt;
&lt;p&gt;1) Sys.WebForms.PageRequestManagerServerErrorException: Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that &amp;lt;machineKey&amp;gt; configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.&lt;/p&gt;
&lt;p&gt;2) Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 403&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve remove DataKeyNames from the gridview; set enableEventValidationl=&amp;quot;false&amp;quot; in web.config. But still couldn&amp;#39;t reslove them.&lt;/p&gt;
&lt;p&gt;The gridviews have &amp;lt;asp:BoundField&amp;gt; columns. Can I sitll use the &amp;lt;asp:BoundField&amp;gt;?&lt;/p&gt;
&lt;p&gt;These errors are driving me crazy. Would really appreciate any solutions or further pointers on how to reslove them.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Ben&lt;/p&gt;</description></item><item><title>Re: Validation of viewstate MAC failed / The state information is invalid for this page and might be corrupted</title><link>http://forums.asp.net/thread/3318109.aspx</link><pubDate>Wed, 29 Jul 2009 06:10:53 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3318109</guid><dc:creator>Patrickh60</dc:creator><author>Patrickh60</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3318109.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3318109</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Extra set of form tags!&amp;nbsp; That&amp;#39;s what was throwing my page off.&lt;/p&gt;</description></item><item><title>Re: Validation of viewstate MAC failed / The state information is invalid for this page and might be corrupted</title><link>http://forums.asp.net/thread/3317990.aspx</link><pubDate>Wed, 29 Jul 2009 04:44:21 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3317990</guid><dc:creator>truongthang</dc:creator><author>truongthang</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3317990.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3317990</wfw:commentRss><description>&lt;p&gt;Could you  update service pack 1 for framework 2.0 ? &lt;/p&gt;&lt;p&gt;Click on link below to download Microsoft .NET Framework 2.0 Service Pack 1 (x86)?&lt;/p&gt;&lt;p&gt;&lt;a title="http://www.microsoft.com/downloads/details.aspx?familyid=79BC3B77-E02C-4AD3-AACF-A7633F706BA5&amp;amp;displaylang=en" href="http://www.microsoft.com/downloads/details.aspx?familyid=79BC3B77-E02C-4AD3-AACF-A7633F706BA5&amp;amp;displaylang=en"&gt;http://www.microsoft.com/downloads/details.aspx?familyid=79BC3B77-E02C-4AD3-AACF-A7633F706BA5&amp;amp;displaylang=en&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Hope this help.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Validation of viewstate MAC failed / The state information is invalid for this page and might be corrupted</title><link>http://forums.asp.net/thread/3317970.aspx</link><pubDate>Wed, 29 Jul 2009 04:34:36 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3317970</guid><dc:creator>Patrickh60</dc:creator><author>Patrickh60</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3317970.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3317970</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;yunusjdr:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;
&lt;p&gt;set following attribute in page tage. This will sove your problem &lt;/p&gt;
&lt;p&gt;EnableViewStateMac=&amp;quot;false&amp;quot; ValidateRequest=&amp;quot;false&amp;quot;&amp;nbsp; EnableEventValidation=&amp;quot;false&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ViewStateEncryptionMode=&amp;quot;never&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So this stops all validation and encryption, opening my site up to malicious code.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is a solution?&amp;nbsp; How about something credible?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;</description></item><item><title>Re: Validation of viewstate MAC failed / The state information is invalid for this page and might be corrupted</title><link>http://forums.asp.net/thread/3315384.aspx</link><pubDate>Mon, 27 Jul 2009 22:45:37 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3315384</guid><dc:creator>rpaulino</dc:creator><author>rpaulino</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3315384.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3315384</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We are experiencing the same problem!&amp;nbsp; What was&amp;nbsp;the solution for this issue? If you can help us out we will really appreciate it.&amp;nbsp; We still using .net 2.0 framework.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description></item><item><title>Re: Validation of viewstate MAC failed / The state information is invalid for this page and might be corrupted</title><link>http://forums.asp.net/thread/3301328.aspx</link><pubDate>Sat, 18 Jul 2009 11:45:51 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3301328</guid><dc:creator>yunusjdr</dc:creator><author>yunusjdr</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3301328.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3301328</wfw:commentRss><description>&lt;p&gt;set following attribute in page tage. This will sove your problem &lt;/p&gt;&lt;p&gt;EnableViewStateMac=&amp;quot;false&amp;quot; ValidateRequest=&amp;quot;false&amp;quot;&amp;nbsp; EnableEventValidation=&amp;quot;false&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ViewStateEncryptionMode=&amp;quot;never&amp;quot;&lt;/p&gt;</description></item><item><title>Re: Validation of viewstate MAC failed / The state information is invalid for this page and might be corrupted</title><link>http://forums.asp.net/thread/3291726.aspx</link><pubDate>Tue, 14 Jul 2009 06:28:45 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3291726</guid><dc:creator>enash11</dc:creator><author>enash11</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3291726.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3291726</wfw:commentRss><description>&lt;p&gt;if your not running a webfarm or cluster then checkout this post:&lt;/p&gt;&lt;p&gt;&lt;a target="_self" title="Validation of Viewstate MAC failed" href="http://elliottnash.com/post/Validation-of-viewstate-MAC-failed.aspx"&gt;Validation of viewstate MAC &lt;span&gt;failed&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Validation of viewstate MAC failed / The state information is invalid for this page and might be corrupted</title><link>http://forums.asp.net/thread/3290877.aspx</link><pubDate>Mon, 13 Jul 2009 19:10:56 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3290877</guid><dc:creator>in2minds</dc:creator><author>in2minds</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3290877.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3290877</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;to whom it might help,&lt;/p&gt;
&lt;p&gt;I saw this error for the first time in my life, but soon discovered the solution. &lt;/p&gt;
&lt;p&gt;I had an imagelink and imagebutton in my Login control which uses a postback url.&lt;/p&gt;
&lt;p&gt;I simply changed it to Hyperlink and set the redirect page, and this error was gone.&lt;/p&gt;
&lt;p&gt;I have read a lot of posts about imagebutton and imagelink causing this error.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Mehdi&lt;/p&gt;</description></item><item><title>Re: Validation of viewstate MAC failed / The state information is invalid for this page and might be corrupted</title><link>http://forums.asp.net/thread/3263486.aspx</link><pubDate>Mon, 29 Jun 2009 07:35:22 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3263486</guid><dc:creator>meetmanthan</dc:creator><author>meetmanthan</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3263486.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3263486</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Add &lt;strong&gt;EnableViewStateMac=&amp;quot;true&amp;quot; &lt;/strong&gt;tag on every page as given below which will help you to solve ur problem.&lt;br /&gt;&lt;br /&gt;Like this:&lt;br /&gt;&lt;strong&gt;&amp;lt;%@ Page Language=&amp;quot;C#&amp;quot; AutoEventWireup=&amp;quot;true&amp;quot; CodeBehind=&amp;quot;Default.aspx.cs&amp;quot; EnableViewStateMac=&amp;quot;true&amp;quot; Inherits=&amp;quot;WebApplication1._Default&amp;quot; %&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;</description></item><item><title>Re: Validation of viewstate MAC failed / The state information is invalid for this page and might be corrupted</title><link>http://forums.asp.net/thread/3263123.aspx</link><pubDate>Mon, 29 Jun 2009 03:20:36 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3263123</guid><dc:creator>truongthang</dc:creator><author>truongthang</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3263123.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3263123</wfw:commentRss><description>&lt;p&gt;Could you read this link below: &lt;/p&gt;&lt;p&gt;&lt;a target="_self" href="http://blogs.msdn.com/tom/archive/2008/03/14/validation-of-viewstate-mac-failed-error.aspx"&gt;http://blogs.msdn.com/tom/archive/2008/03/14/validation-of-viewstate-mac-failed-error.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Hope this help.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Validation of viewstate MAC failed / The state information is invalid for this page and might be corrupted</title><link>http://forums.asp.net/thread/3234453.aspx</link><pubDate>Mon, 15 Jun 2009 15:11:26 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3234453</guid><dc:creator>oguzkaygun</dc:creator><author>oguzkaygun</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3234453.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3234453</wfw:commentRss><description>&lt;p&gt;hi&lt;/p&gt;
&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;have&amp;nbsp;you putted below codes to web.config ? i have done and i dont get any error.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;lt;pages validateRequest=&amp;quot;false&amp;quot; enableEventValidation=&amp;quot;false&amp;quot; viewStateEncryptionMode =&amp;quot;Never&amp;quot;/&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;lt;machineKey validationKey=&amp;quot;4F004FF91297DB68BA2DDD6C5FE9F4DA9C1CCACD7D37C8DFCD71EF74655E0270306F7BA9A49D6303E889273F9411C374F4631A4E598F966E6EE6A108E908D0F9&amp;quot; decryptionKey=&amp;quot;7BBD6839CD8CE32056F176544B8BE70DFCF3D5AB32BF793E&amp;quot; validation=&amp;quot;SHA1&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &lt;/p&gt;</description></item><item><title>Re: Validation of viewstate MAC failed / The state information is invalid for this page and might be corrupted</title><link>http://forums.asp.net/thread/3234422.aspx</link><pubDate>Mon, 15 Jun 2009 15:00:36 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3234422</guid><dc:creator>dubsdj</dc:creator><author>dubsdj</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3234422.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3234422</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;

I got this error at very rare times with my datagrid... very strange..&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Validation of viewstate MAC failed / The state information is invalid for this page and might be corrupted</title><link>http://forums.asp.net/thread/3229304.aspx</link><pubDate>Fri, 12 Jun 2009 18:46:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3229304</guid><dc:creator>oguzkaygun</dc:creator><author>oguzkaygun</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3229304.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3229304</wfw:commentRss><description>&lt;p&gt;hi&lt;/p&gt;
&lt;p&gt;i use visual studio 2008 sp1 and framework 3.5. When i send my website to host, will i see same error ?&lt;/p&gt;
&lt;p&gt;Or this error only for framework 2.0 ?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item><item><title>Re: Validation of viewstate MAC failed / The state information is invalid for this page and might be corrupted</title><link>http://forums.asp.net/thread/3222311.aspx</link><pubDate>Wed, 10 Jun 2009 08:56:09 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3222311</guid><dc:creator>mohit_dj</dc:creator><author>mohit_dj</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3222311.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=22&amp;PostID=3222311</wfw:commentRss><description>&lt;p&gt;Have you read this?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;555353"&gt;http://support.microsoft.com/default.aspx?scid=kb;en-us;555353&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hope it helps....&lt;/p&gt;</description></item></channel></rss>