473,651 Members | 2,551 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Viewstate error

Here is the view state error I am getting on a Windows 2003 box:
-------------------------------------------------

Unable to validate data.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Web.Http Exception: 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.Conf iguration.Machi neKey.GetDecode dData(Byte[] buf,
Byte[] modifier, Int32 start, Int32 length, Int32& dataLength) +195
System.Web.UI.L osFormatter.Des erialize(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.L osFormatter.Des erialize(String input) +118
System.Web.UI.P age.LoadPageSta teFromPersisten ceMedium() +101

[HttpException (0x80004005): Invalid_Viewsta te
Client IP: 198.173.17.221
Port: 37368
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;
..NET CLR 1.1.4322)
ViewState:
dDwtNjU1NzEzMDg xO3Q8O2w8aTwxPj tpPDM+Oz47bDx0P DtsPGk8MT47Pjts PHQ8cDxwPGw8VGV 4dDs+O2w8Oz4+Oz 47Oz47Pj47dDw7b DxpPDA+Oz47bDx0 PDtsPGk8MD47Pjt sPHQ8O2w8aTwxPj s+O2w8dDw7bDxpP DA+Oz47bDx0PHA8 cDxsPEVuYWJsZWQ 7VmlzaWJsZTs+O2 w8bzxmPjtvPGY+O z4+Oz47Oz47Pj47 Pj47Pj47Pj47Pj4 7Pu78vTz5oFNjQ1/NqsSMBiJFXHDm
Http-Referer: http://www.fineartsfund.org/ePledge-Test/Login.aspx
Path: /ePledge-Test/Login.aspx.]
System.Web.UI.P age.LoadPageSta teFromPersisten ceMedium() +442
System.Web.UI.P age.LoadPageVie wState() +18
System.Web.UI.P age.ProcessRequ estMain() +447


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.432 2.2300;
ASP.NET Version:1.1.432 2.2300
Nov 19 '05 #1
5 2314
is this a consistent error? if it is transient, you may want to just ignore
it. The fixes for this permutation of viewstate issue isn't really worth the
time and effort investment.

--
Regards,
Alvin Bruney - ASP.NET MVP

[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
Now available @ www.lulu.com/owc, Amazon.com etc
"No one" <no***@yahoo.co m> wrote in message
news:cr******** ****@gandalf.gr ey-net.com...
Here is the view state error I am getting on a Windows 2003 box:
-------------------------------------------------

Unable to validate data.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Web.Http Exception: 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.Conf iguration.Machi neKey.GetDecode dData(Byte[] buf, Byte[]
modifier, Int32 start, Int32 length, Int32& dataLength) +195
System.Web.UI.L osFormatter.Des erialize(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.L osFormatter.Des erialize(String input) +118
System.Web.UI.P age.LoadPageSta teFromPersisten ceMedium() +101

[HttpException (0x80004005): Invalid_Viewsta te
Client IP: 198.173.17.221
Port: 37368
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET
CLR 1.1.4322)
ViewState:
dDwtNjU1NzEzMDg xO3Q8O2w8aTwxPj tpPDM+Oz47bDx0P DtsPGk8MT47Pjts PHQ8cDxwPGw8VGV 4dDs+O2w8Oz4+Oz 47Oz47Pj47dDw7b DxpPDA+Oz47bDx0 PDtsPGk8MD47Pjt sPHQ8O2w8aTwxPj s+O2w8dDw7bDxpP DA+Oz47bDx0PHA8 cDxsPEVuYWJsZWQ 7VmlzaWJsZTs+O2 w8bzxmPjtvPGY+O z4+Oz47Oz47Pj47 Pj47Pj47Pj47Pj4 7Pu78vTz5oFNjQ1/NqsSMBiJFXHDm
Http-Referer: http://www.fineartsfund.org/ePledge-Test/Login.aspx
Path: /ePledge-Test/Login.aspx.]
System.Web.UI.P age.LoadPageSta teFromPersisten ceMedium() +442
System.Web.UI.P age.LoadPageVie wState() +18
System.Web.UI.P age.ProcessRequ estMain() +447


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.432 2.2300;
ASP.NET Version:1.1.432 2.2300

Nov 19 '05 #2
This is a VERY consistent error, but it only happens in the production
environment. This application was recently migrated from Win2K server
to Win 2003 server. Interestingly enough, it seems to happen with IE
more so than Firefox. But the client is down till this is fixed.

Thanks

Alvin Bruney [MVP - ASP.NET] wrote:
is this a consistent error? if it is transient, you may want to just ignore
it. The fixes for this permutation of viewstate issue isn't really worth the
time and effort investment.

Nov 19 '05 #3
is this a clustered environment or web farm?

if so:

http://support.microsoft.com/default...;en-us;Q312906

-Andrew
"No one" <no***@yahoo.co m> wrote in message
news:at******** ****@gandalf.gr ey-net.com...
This is a VERY consistent error, but it only happens in the production
environment. This application was recently migrated from Win2K server to
Win 2003 server. Interestingly enough, it seems to happen with IE more so
than Firefox. But the client is down till this is fixed.

Thanks

Alvin Bruney [MVP - ASP.NET] wrote:
is this a consistent error? if it is transient, you may want to just
ignore it. The fixes for this permutation of viewstate issue isn't really
worth the time and effort investment.

Nov 19 '05 #4
No, a single server with one CPU.

Andrew wrote:
is this a clustered environment or web farm?

if so:

http://support.microsoft.com/default...;en-us;Q312906

-Andrew
"No one" <no***@yahoo.co m> wrote in message
news:at******** ****@gandalf.gr ey-net.com...
This is a VERY consistent error, but it only happens in the production
environment . This application was recently migrated from Win2K server to
Win 2003 server. Interestingly enough, it seems to happen with IE more so
than Firefox. But the client is down till this is fixed.

Thanks

Alvin Bruney [MVP - ASP.NET] wrote:
is this a consistent error? if it is transient, you may want to just
ignore it. The fixes for this permutation of viewstate issue isn't really
worth the time and effort investment.


Nov 19 '05 #5
Actually, I did this for the test area on the production box. It seems
to be working, but I've not tested it thorougly (I'm traveling for
another client). I have looked into turning the session storage into
using the database. Will this help?

Andrew wrote:
is this a clustered environment or web farm?

if so:

http://support.microsoft.com/default...;en-us;Q312906

-Andrew
"No one" <no***@yahoo.co m> wrote in message
news:at******** ****@gandalf.gr ey-net.com...
This is a VERY consistent error, but it only happens in the production
environment . This application was recently migrated from Win2K server to
Win 2003 server. Interestingly enough, it seems to happen with IE more so
than Firefox. But the client is down till this is fixed.

Thanks

Alvin Bruney [MVP - ASP.NET] wrote:
is this a consistent error? if it is transient, you may want to just
ignore it. The fixes for this permutation of viewstate issue isn't really
worth the time and effort investment.


Nov 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
4883
by: theo | last post by:
Hi... I wish to extract the text content of an Xml file and assign it to DropDownList controls at runtime.I can get the Xml file text content into the DropDownList controls (Ex...if 5 Xml text tags then 5 dropdownlist controls each containing the 5 Xml text tags). Problem,when I save the user DropDownList selected items by means of a button click the web form looses the PlaceHolder viewstate and generates the following error..."Object...
9
21638
by: John Kirksey | last post by:
I have a page that uses an in-place editable DataGrid that supports sorting and paging. EnableViewState is turned ON. At the top of the page are several search fields that allow the user to filter the results in the grid. Say you filter the grid for records that have a certain condition set to "NO" (in this case a checkbox). In this scenario the search returns one result. If I then check the checkbox ("YES") and save it, I now get my message...
1
3743
by: Ralph Soons | last post by:
Hi all, I am trying to save the viewstate in a session instead of storing it in a hidden of the webpage which is default. This because of performance reasons. When I use line 2 in combination with line 4, my application works. Using Line 1 in combination with line 3 (and of course renaming httpSessionState1 to httpSessionState) results in the error as mentioned below. protected override object LoadPageStateFromPersistenceMedium() {
2
1982
by: Janaka | last post by:
We have managed to lock down 99% of the application errors occurring in our asp.net sites. The only errors which occur on a regular basis now are viewstate errors. We have disabled viewstate on the majority of pages but kept them where absolutely necessary, such as shopping carts, adding items, etc. Also we've made sure the following have been met: EnableViewStateMac = false Disabled viewstate on all controls which are unnecessary...
11
2471
by: Nad | last post by:
Hello, I have a page with two link buttons. When I click on the first one I call server.execute("target.aspx") to view target.aspx on the original page. Then I click on the second link button and in this case I redirect to another page, HOWEVER, I get Invalid ViewState exception. I know the problem stems from server.execute but don't know why. Any Ideas? Thank you.
9
4912
by: Jamie | last post by:
I am receiving an Invalid ViewState error after posting back to the same page twice. Consistently the error occurs after the second postback and not after the first. I have looked into creating a static machinekey in the machine.config and that did not help. I believe that issue only occurred when there was an inconsistent viewstate error. The error I am faced with consistently occurs. Are there any known problems with the ViewState...
1
3452
by: Tim | last post by:
Greetings! I have a UserControl. On this UserControl is a Panel and a RadioButtonList. The Panel's Visible property is set to false by default. When the user selects a particular RadioButtonList value, a postback is performed and the Panel's Visible property is set to true. Selecting a different RadioButtonList value sets the Visible property to false again. So far, so good. It does, in fact, do this.
10
3076
by: Robert | last post by:
I have an app that was originally 1.1, now migrated to 2.0 and have run into some sporadic viewstate errors...usually saying the viewstate is invalid, eventvalidation failed or mac error. My web config does specify a machinekey setting: <machineKey validationKey="447C05E8B3A71401CC4CAE5513A7F1A3494A3618EE819316AAD1D58433F236A759D66FB4154500E01EB4E1BC1DE42046E2D652D391CB8367A1649438867A02EB"...
7
2123
by: GS | last post by:
Hello, I'm receiving The state information is invalid for this page and might be corrupted error message when running code below. This happens on second post back. Why is it happening? My webpage contains 2 dropdowns controls and I save information entered by user in ViewState variable containing array ArrayList MyCoordinates = (ArrayList) ViewState ; if (MyCoordinates == null) { MyCoordinates = new ArrayList ();
0
5734
by: tynorton | last post by:
Hey, I've been working on this issue for a while now, with no leads or success. The scenario is a homemade modal dialog using UpdatePanels. There a couple ImageButtons inside of usercontrols with their OnClick events delegated to file.aspx. Here is my error (These happen fairly infrequently, say, 5-10 times an
0
8275
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8795
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8576
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7296
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6157
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5609
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4143
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4281
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1906
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.