Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Professional
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Display Modes
  #1 (permalink)  
Old February 22nd, 2006, 04:24 AM
Registered User
Join Date: Feb 2005
Location: Visnagar, Gujarat, India.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to manojpatel
Default Unable to validate data in ASP.net

Hi all,

Have any body ever seen this problem before? Any solution for this problem?



/************************************************** **************
Exception Details: System.Web.HttpException: Unable to validate data.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[HttpException (0x80004005): Unable to validate data.]
   System.Web.Configuration.MachineKey.GetDecodedData (Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Int32& dataLength)
   System.Web.UI.LosFormatter.Deserialize(String input)

[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)
   System.Web.UI.Page.LoadPageStateFromPersistenceMed ium()

[HttpException (0x80004005): Invalid_Viewstate
    Client IP:
    Port: 1199
    User-Agent: Mozilla/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8Nz47PjtsPHQ8cDxwPGw8VGV4dDs+O2w8Mjs+Pjs+Ozs+O3 Q8cDxwPGw8VGV4dDs+O2w8SG8gICAgICAgICAgICAgOz4+Oz47 Oz47dDxwPHA8bDxUZXh0Oz47bDxRdWFuZyAgICAgICAgICA7Pj 47Pjs7Pjt0PHA8cDxsPFRleHQ7PjtsPDgzMjIyOC0yNjYyICAg IDs+Pjs+Ozs+O3Q8cDxwPGw8VGV4dDs+O2w8Jm5ic3BcOzs+Pj s+Ozs+O3Q8cDxwPGw8VGV4dDs+O2w8Jm5ic3BcOzs+Pjs+Ozs+ O3Q8cDxwPGw8VGV4dDs+O2w8MDAxOz4+Oz47Oz47Pj47dDw7bD xpPDE+O2k8Mj47aTwzPjtpPDQ+O2k8NT47aTw2PjtpPDc+Oz47 bDx0PHA8cDxsPFRleHQ7PjtsPDM7Pj47Pjs7Pjt0PHA8cDxsPF RleHQ7PjtsPERhbmcgICAgICAgICAgIDs+Pjs+Ozs+O3Q8cDxw PGw8VGV4dDs+O2w8SHVuZyAgICAgICAgICAgOz4+Oz47Oz47dD xwPHA8bDxUZXh0Oz47bDwyODEtNTMwLTY1NzUgICA7Pj47Pjs7 Pjt0PHA8cDxsPFRleHQ7PjtsPCZuYnNwXDs7Pj47Pjs7Pjt0PH A8cDxsPFRleHQ7PjtsPCZuYnNwXDs7Pj47Pjs7Pjt0PHA8cDxs PFRleHQ7PjtsPDAwMTs+Pjs+Ozs+Oz4+Oz4+Oz4+Oz4+Oz4+Oz 4m3xAHRzY8nZGVSC+wwcvuSBQzjQ==
    Http-Referer: http://localhost/Web01/main.aspx
    Path: /Web01/Contact/UpdateContact.aspx.]
   System.Web.UI.Page.LoadPageStateFromPersistenceMed ium()

Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032

  #2 (permalink)  
Old February 22nd, 2006, 07:05 AM
Wrox Technical Editor
Join Date: Nov 2005
Location: , , Canada.
Posts: 271
Thanks: 0
Thanked 0 Times in 0 Posts

Take a look at this: http://support.microsoft.com/default...b;en-us;831150

- A.Kahtava
  #3 (permalink)  
Old June 13th, 2006, 02:31 PM
Registered User
Join Date: Jun 2006
Location: , OR, .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

Has there been any update on this?

I have two websites that are nearly identical except which SQL Server db they use. Web pages named the same, web.config the same - one works and one fails with this validation error. They both work just fine using the VB debugger.
On one test - I disabled the cookies for the sessionstate
            sqlConnectionString="data source=;Trusted_Connection=yes"
This resulted in the inital webpage reloading after any button is clicked embedding a machinekey in the URL.
After this - the website works fine.
I'd much rather get a clean fix.
I am not by any means an expert in VB web pages.

Terry Fish

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
C#(ASP.NET) Validate date entry richie86 ASP.NET 1.0 and 1.1 Basics 1 November 3rd, 2005 12:58 AM
unable to display stored data in textbox(asp.net) Abhinav_jain_mca ADO.NET 6 August 4th, 2004 07:45 AM
unable to display stored data(asp.net) Abhinav_jain_mca ADO.NET 3 August 3rd, 2004 03:33 AM
unable to print stored data in textbox(asp.net) Abhinav_jain_mca ADO.NET 1 July 30th, 2004 09:34 PM

All times are GMT -4. The time now is 11:50 AM.

Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.