473,624 Members | 1,957 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

The viewstate is invalid for this page and might be corrup

Can anybody help on the following error :
The viewstate is invalid for this page and might be corrupted.
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: The viewstate is invalid for
this page and might be corrupted.

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): The viewstate is invalid for this page and
might be corrupted.]
System.Web.UI.P age.LoadPageSta teFromPersisten ceMedium() +150
............... ............... ...

Jason
Nov 18 '05 #1
7 1458
Is there any JavaScript that might be altering values that the server doesn't
know about?

"Jason" wrote:
Can anybody help on the following error :
The viewstate is invalid for this page and might be corrupted.
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: The viewstate is invalid for
this page and might be corrupted.

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): The viewstate is invalid for this page and
might be corrupted.]
System.Web.UI.P age.LoadPageSta teFromPersisten ceMedium() +150
............... ............... ...

Jason

Nov 18 '05 #2
I think no....
"Ken Cox [Microsoft MVP]" <BA************ @sympatico.ca> wrote in message
news:3A******** *************** ***********@mic rosoft.com...
Is there any JavaScript that might be altering values that the server
doesn't
know about?

"Jason" wrote:
Can anybody help on the following error :
The viewstate is invalid for this page and might be corrupted.
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: The viewstate is invalid for
this page and might be corrupted.

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): The viewstate is invalid for this page and
might be corrupted.]
System.Web.UI.P age.LoadPageSta teFromPersisten ceMedium() +150
............... ............... ...

Jason

Nov 18 '05 #3
I've read different theories on this. One says that it is caused when you
have enabledViewStat eMac= "true" in web.config (the default) and you cause a
postback after session expires.

I've added
<system.web>
....
<pages enableViewState Mac="false" />
</system.web>

to my web.config and I've seen this error much, much less frequently in my
logs.

Just my .02
Greg

"Jason" <hw****@idigi.n et.my> wrote in message
news:%2******** *******@tk2msft ngp13.phx.gbl.. .
Can anybody help on the following error :
The viewstate is invalid for this page and might be corrupted.
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: The viewstate is invalid for
this page and might be corrupted.

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): The viewstate is invalid for this page and
might be corrupted.]
System.Web.UI.P age.LoadPageSta teFromPersisten ceMedium() +150
............... ............... ..

Jason

Nov 18 '05 #4
I have try setting enableViewState Mac="false" but error still came out....

"Greg Burns" <greg_burns@DON T_SPAM_ME_hotma il.com> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
I've read different theories on this. One says that it is caused when you
have enabledViewStat eMac= "true" in web.config (the default) and you cause
a postback after session expires.

I've added
<system.web>
...
<pages enableViewState Mac="false" />
</system.web>

to my web.config and I've seen this error much, much less frequently in my
logs.

Just my .02
Greg

"Jason" <hw****@idigi.n et.my> wrote in message
news:%2******** *******@tk2msft ngp13.phx.gbl.. .
Can anybody help on the following error :
The viewstate is invalid for this page and might be corrupted.
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: The viewstate is invalid for
this page and might be corrupted.

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): The viewstate is invalid for this page and
might be corrupted.]
System.Web.UI.P age.LoadPageSta teFromPersisten ceMedium() +150
............... ............... ..

Jason


Nov 18 '05 #5
Give us some more details. Does this happen on your development PC or when
you post it to your server?

Does it happen immediately? Is it just one page that has the problem?

Does this help any...
http://support.microsoft.com/default...b;en-us;323744

Greg

"Jason" <hw****@idigi.n et.my> wrote in message
news:OR******** ******@TK2MSFTN GP12.phx.gbl...
I have try setting enableViewState Mac="false" but error still came out....

"Greg Burns" <greg_burns@DON T_SPAM_ME_hotma il.com> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
I've read different theories on this. One says that it is caused when
you have enabledViewStat eMac= "true" in web.config (the default) and you
cause a postback after session expires.

I've added
<system.web>
...
<pages enableViewState Mac="false" />
</system.web>

to my web.config and I've seen this error much, much less frequently in
my logs.

Just my .02
Greg

"Jason" <hw****@idigi.n et.my> wrote in message
news:%2******** *******@tk2msft ngp13.phx.gbl.. .
Can anybody help on the following error :
The viewstate is invalid for this page and might be corrupted.
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: The viewstate is invalid
for this page and might be corrupted.

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): The viewstate is invalid for this page and
might be corrupted.]
System.Web.UI.P age.LoadPageSta teFromPersisten ceMedium() +150
............... ............... ..

Jason



Nov 18 '05 #6
First of all it didn't happen in my developement PC and it only happen in my
server after i uploaded into it..
It started happen when i open the page with nearly 500 controls which
include <asp:button> and <asp:checkbox >
It also happen in the page which only has around 20 controls..
Please help.. Even though i upgraded the dot net framework 1.1 SP1 in the
server but it still happen...
"Greg Burns" <greg_burns@DON T_SPAM_ME_hotma il.com> wrote in message
news:Oo******** ******@TK2MSFTN GP12.phx.gbl...
Give us some more details. Does this happen on your development PC or
when you post it to your server?

Does it happen immediately? Is it just one page that has the problem?

Does this help any...
http://support.microsoft.com/default...b;en-us;323744

Greg

"Jason" <hw****@idigi.n et.my> wrote in message
news:OR******** ******@TK2MSFTN GP12.phx.gbl...
I have try setting enableViewState Mac="false" but error still came out....

"Greg Burns" <greg_burns@DON T_SPAM_ME_hotma il.com> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
I've read different theories on this. One says that it is caused when
you have enabledViewStat eMac= "true" in web.config (the default) and you
cause a postback after session expires.

I've added
<system.web>
...
<pages enableViewState Mac="false" />
</system.web>

to my web.config and I've seen this error much, much less frequently in
my logs.

Just my .02
Greg

"Jason" <hw****@idigi.n et.my> wrote in message
news:%2******** *******@tk2msft ngp13.phx.gbl.. .
Can anybody help on the following error :
The viewstate is invalid for this page and might be corrupted.
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: The viewstate is invalid
for this page and might be corrupted.

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): The viewstate is invalid for this page and
might be corrupted.]
System.Web.UI.P age.LoadPageSta teFromPersisten ceMedium() +150
............... ............... ..

Jason



Nov 18 '05 #7
Hi,
I have the same error when running my application on my local PC or Web
server. My javascript does change the action of the form when being
submitted, as I have to submit the same page to various other pages depending
on conditions.
Is there any fix so that I can change the form values using Javascript and
avoid this error?
Thanks,
Rajiv

"Ken Cox [Microsoft MVP]" wrote:
Is there any JavaScript that might be altering values that the server doesn't
know about?

"Jason" wrote:
Can anybody help on the following error :
The viewstate is invalid for this page and might be corrupted.
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: The viewstate is invalid for
this page and might be corrupted.

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): The viewstate is invalid for this page and
might be corrupted.]
System.Web.UI.P age.LoadPageSta teFromPersisten ceMedium() +150
............... ............... ...

Jason

Nov 18 '05 #8

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

Similar topics

0
1796
by: Anup Jishnu | last post by:
Hi, I have installed ASP.Net application on a system. When accessing the Application from within the LAN, it works fine. However, when I access the application from the Internet, some pages gve the following error for VIEWSTATE. The internal network is protected by a Firewall. My suspicion is that
2
1768
by: sarvjeet Saini | last post by:
My application is working fine on our local server.We tried on two local servers for testing purpose. But when we host on our main server ,we got the following error: some it work Fine but not always... *********************************************************** Server Error in '/' Application. The viewstate is invalid for this page and might be
2
2585
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
1963
by: Mind Dragon | last post by:
I have an ASP application that works fine locally but when it's uploaded occasionally, I get viewstate errors. Another thing is that the viewstate for that page is disabled. There are cases where I can just refresh the page and it goes through ok <%@ Page Language="VB" EnableViewState="false" Debug="true" % The worker threads are set to one, however, it is running on a dual processor web server. The Load Balancer is not installed. What...
2
1333
by: Bartosz Krzywicki | last post by:
I have a problem with the following error: "Server Error in '/sir' Application. -------------------------------------------------------------------------------- The viewstate is invalid for this page and might be corrupted. " Page properties are: EnableViewState="True" EnableViewStateMac="False" I don't have a Web Farm. I want to keep DataSet in ViewState, so in Page_Load i load some data and save them in the ViewState.
1
1930
by: S S Venkatesh | last post by:
Hi, I'm involved in a ASP.NET web project with a web farm and load balancing(windows server 2003 ) with no afinity (no sticky sessions) and i am facing problems in view state. I get an error like this. Server Error in '/ViewState' Application. ---------------------------------------------------------------------------- ---- The viewstate is invalid for this page and might be corrupted.
1
289
by: Hillary Hill | last post by:
I am getting the following error. Ths steps are 1. A Page with Datagrid and literal control. 2. View state is the default one for all the controls. (Not changed). 3. When user clicks the HTML button, I am redirecting the user to myNext.aspx page from the client side code as shown. document.frmForm.action="myNext.aspx"; document.frmForm.submit(); What is the error that I am making here? Thanks,
9
4910
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...
7
2122
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
8238
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
8174
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
8680
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...
1
8336
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
8478
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
5565
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
4176
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2607
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1786
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.