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

Home Posts Topics Members FAQ

System.Web.Http Exception: The viewstate is invalid for this page and might be corrupted

I've seen several message on newsgroup, but none helped me fixed this damned
problem.

I am not on a load balancing, and the copy in the server is there for ages,
and yet I receive 10 to 20 times a day an email with the same error
happening in various places of my website..

-------------
System.Web.Http UnhandledExcept ion: Exception of type
System.Web.Http UnhandledExcept ion was thrown. ---> System.Web.Http Exception:
The viewstate is invalid for this page and might be corrupted.
at System.Web.UI.P age.LoadPageSta teFromPersisten ceMedium()
at System.Web.UI.P age.LoadPageVie wState()
at System.Web.UI.P age.ProcessRequ estMain()
--- End of inner exception stack trace ---
at System.Web.UI.P age.HandleError (Exception e)
at System.Web.UI.P age.ProcessRequ estMain()
at System.Web.UI.P age.ProcessRequ est()
at System.Web.UI.P age.ProcessRequ est(HttpContext context)
at
System.Web.Call HandlerExecutio nStep.System.We b.HttpApplicati on+IExecutionSt e
p.Execute()
at System.Web.Http Application.Exe cuteStep(IExecu tionStep step, Boolean&
completedSynchr onously)
-------

There is no common point between all errors, I'm about to disable viewstate
everywhere because I'm sick and tired to get those.. is there an actual way
to fix that?
Nov 18 '05 #1
2 4243
I had the same problem while developing pages for a Pocket PC
application.

Try setting the enableViewState Mac="False" in your .aspx page.

Make sure you actually include it in the page as the default for this
property seems to be true. (Can either manually include it or change
the property to true and then back to false.)

I can now leave ViewState on and all works ok.

Hope this helps.

"Nicolas LeBlanc" <ni************ *@nospam.hotmai l.com> wrote in message news:<Oo******* *******@TK2MSFT NGP09.phx.gbl>. ..
I've seen several message on newsgroup, but none helped me fixed this damned
problem.

I am not on a load balancing, and the copy in the server is there for ages,
and yet I receive 10 to 20 times a day an email with the same error
happening in various places of my website..

-------------
System.Web.Http UnhandledExcept ion: Exception of type
System.Web.Http UnhandledExcept ion was thrown. ---> System.Web.Http Exception:
The viewstate is invalid for this page and might be corrupted.
at System.Web.UI.P age.LoadPageSta teFromPersisten ceMedium()
at System.Web.UI.P age.LoadPageVie wState()
at System.Web.UI.P age.ProcessRequ estMain()
--- End of inner exception stack trace ---
at System.Web.UI.P age.HandleError (Exception e)
at System.Web.UI.P age.ProcessRequ estMain()
at System.Web.UI.P age.ProcessRequ est()
at System.Web.UI.P age.ProcessRequ est(HttpContext context)
at
System.Web.Call HandlerExecutio nStep.System.We b.HttpApplicati on+IExecutionSt e
p.Execute()
at System.Web.Http Application.Exe cuteStep(IExecu tionStep step, Boolean&
completedSynchr onously)
-------

There is no common point between all errors, I'm about to disable viewstate
everywhere because I'm sick and tired to get those.. is there an actual way
to fix that?

Nov 18 '05 #2
This might work, but I'd still like to know what it does...

First thing you see when you look for enableViewState Mac in MSDN is:

This member supports the .NET Framework infrastructure and is not intended
to be used directly from your code.

Without any other explanation!

"Tim Harvey" <ti********@mvm .co.uk> wrote in message
news:e0******** *************** *@posting.googl e.com...
I had the same problem while developing pages for a Pocket PC
application.

Try setting the enableViewState Mac="False" in your .aspx page.

Make sure you actually include it in the page as the default for this
property seems to be true. (Can either manually include it or change
the property to true and then back to false.)

I can now leave ViewState on and all works ok.

Hope this helps.

"Nicolas LeBlanc" <ni************ *@nospam.hotmai l.com> wrote in message

news:<Oo******* *******@TK2MSFT NGP09.phx.gbl>. ..
I've seen several message on newsgroup, but none helped me fixed this damned problem.

I am not on a load balancing, and the copy in the server is there for ages, and yet I receive 10 to 20 times a day an email with the same error
happening in various places of my website..

-------------
System.Web.Http UnhandledExcept ion: Exception of type
System.Web.Http UnhandledExcept ion was thrown. ---> System.Web.Http Exception: The viewstate is invalid for this page and might be corrupted.
at System.Web.UI.P age.LoadPageSta teFromPersisten ceMedium()
at System.Web.UI.P age.LoadPageVie wState()
at System.Web.UI.P age.ProcessRequ estMain()
--- End of inner exception stack trace ---
at System.Web.UI.P age.HandleError (Exception e)
at System.Web.UI.P age.ProcessRequ estMain()
at System.Web.UI.P age.ProcessRequ est()
at System.Web.UI.P age.ProcessRequ est(HttpContext context)
at
System.Web.Call HandlerExecutio nStep.System.We b.HttpApplicati on+IExecutionSt e p.Execute()
at System.Web.Http Application.Exe cuteStep(IExecu tionStep step, Boolean&
completedSynchr onously)
-------

There is no common point between all errors, I'm about to disable viewstate everywhere because I'm sick and tired to get those.. is there an actual way to fix that?

Nov 18 '05 #3

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

Similar topics

0
1592
by: Mita | last post by:
I Am trying to post my form on to a second page, but it keeps coming with a, error: Exception Details: System.Web.HttpException: The View State is invalid for this page and might be corrupted. Any ideas? Please help.
0
1217
by: Jon | last post by:
"the viewstate is invalid for this page and might be corrupted" this error comes up when a user leaves an .aspx page on the browser for a while then comes back to use it. what causes it and how can you fix this. thanks
5
5654
by: Hardy Wang | last post by:
Hi all: I developed a web site, it passed various testing internally. When I put this site in production, I receive some error reports from this site saying "the viewstate is invalid for this page and might be corrupted". I am wandering what kind of client side problem may cause this error? Is it possible that user uses a browser which has local cache turned on all the time? Thanks for any suggestion.
0
2331
by: Trevor Andrew | last post by:
Hi There, I have posted something previously regarding this issue, but I think I have some more concise questions to ask, and would like to get further feedback on this issue. Firstly the background. I have a small ASP.NET application under development. I'm using VS 2002 with Framework 1.1. One of the pages is a "resources" page that contains a list-box of various RSS feeds I am interested in surveying. As you select the different RSS...
3
2179
by: Gvnn | last post by:
Hi, I've a little problem, i've an asp.net page, with a runat server form, like this: <%@ Page Language="vb" AutoEventWireup="false" Codebehind="index.aspx.vb" Inherits="indexGstPro"%> <HTML> <HEAD> </HEAD> <body>
2
2587
by: Mike | last post by:
hi to all does any body know or receive this message before and how i can repare this: The viewstate is invalid for this page and might be corrupted. thank's Mike
1
2140
by: dima | last post by:
Hi All, I know some of you had this problem in production. Did anyone find out how to fix this problem or what is the cause of it? System.Web.HttpException: Invalid_Viewstate System.Web.HttpException: 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...
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 ();
4
23839
by: JamTech | last post by:
The Script Resource and the Web Resource files are generating intermittent errors in my application. I have been trying to chase the cause of the problem but to no avail. I notice that the “d” parameter that is passed is some how corrupted and I can’t for the life of me figure out what’s causing this parameter to be corrupted. I noticed that JavaScript code that in my application is some how getting intertwined with the hash code that’s...
0
8352
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
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,...
1
8465
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8579
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
7297
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
6158
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
4144
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
4283
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1909
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.