Hi Vinay,
FYI, it is not recommended that you disable the machine authentication
check. If you do, you open yourself up to someone tampering with the
viewstate.
Jim Cheshire [MSFT]
MCP+I, MCSE, MCSD, MCDBA
ASP.NET Developer Support
ja******@online.microsoft.com
This post is provided "AS-IS" with no warranties and confers no rights.
--------------------
| Thread-Topic: Invalid viewstate
| thread-index: AcTGtiEZo23tyl/YRyGg1fUnxKBDzw==
| X-WBNR-Posting-Host: 207.238.101.61
| From: "=?Utf-8?B?dmluYXk=?=" <vi***@discussions.microsoft.com>
| References: <95**********************************@microsoft.co m>
<4B**********************************@microsoft.co m>
| Subject: RE: Invalid viewstate
| Date: Tue, 9 Nov 2004 15:45:01 -0800
| Lines: 37
| Message-ID: <B2**********************************@microsoft.co m>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
| Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.framework.aspnet:274886
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| enableViewStateMac="false" solved my problem
|
| "vinay" wrote:
|
| > i am getting it when i am doing a post
| >
| > How to avoid the error??
| >
| > <script language="javascript">
| > function submitMe() {
| > var frm = document.all('Form1');
| > frm.action = "WebForm4.aspx";
| > frm.submit();
| > }
| > </script>
| >
| > "vinay" wrote:
| >
| > > What is this error??
| > >
| > > Exception Details: System.Web.HttpException: Unable to validate data.
| > >
| > >
| > > [HttpException (0x80004005): Unable to validate data.]
| > > System.Web.Configuration.MachineKey.GetDecodedData (Byte[] buf,
Byte[]
| > > modifier, Int32 start, Int32 length, Int32& dataLength) +195
| > > System.Web.UI.LosFormatter.Deserialize(String input) +60
| > >
| > > [HttpException (0x80004005): Authentication of viewstate failed. 1)
If this
| > > is a cluster, edit <machineKey> configuration so all servers use the
same
| > > validationKey and validation algorithm. AutoGenerate cannot be used
in a
| > > cluster. 2) Viewstate can only be posted back to the same page. 3)
The
| > > viewstate for this page might be corrupted.]
| > > System.Web.UI.LosFormatter.Deserialize(String input) +117
| > > System.Web.UI.Page.LoadPageStateFromPersistenceMed ium() +101
| > >
| > >
|