473,385 Members | 2,243 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

ViewState Error! Please help!

Hello

We have a web application developed in .NET using VB.NET. We get the error below every now and then and can't figure out how to correct it. The viewstate this error refers to is pretty large, but I havn't seen any restrictions on a viewstates size. It there a fix for this that I don't know about besides recoding this page using no viewstate? Any help would be appreciated!

System.Web.HttpUnhandledException: Exception of type System.Web.HttpUnhandledException was thrown. ---> System.Web.HttpException: The viewstate is invalid for this page and might be corrupted
at System.Web.UI.Page.LoadPageStateFromPersistenceMed ium(
at System.Web.UI.Page.LoadPageViewState(
at System.Web.UI.Page.ProcessRequestMain(
--- End of inner exception stack trace --
at System.Web.UI.Page.HandleError(Exception e
at System.Web.UI.Page.ProcessRequestMain(
at System.Web.UI.Page.ProcessRequest(
at System.Web.UI.Page.ProcessRequest(HttpContext context
at System.Web.CallHandlerExecutionStep.System.Web.Htt pApplication+IExecutionStep.Execute(
at System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously

Thanks

Nick We

Nov 18 '05 #1
4 1352
Hi,

with this info it is hard to say but try to see MS KB's about the subject.

http://support.microsoft.com/search/...&srchExtraQry=

(watch for wrapping)

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
"Nick Weg" <nwegner('remove')@flightschedulepro.com> wrote in message
news:8D**********************************@microsof t.com...
Hello,

We have a web application developed in .NET using VB.NET. We get the error
below every now and then and can't figure out how to correct it. The
viewstate this error refers to is pretty large, but I havn't seen any
restrictions on a viewstates size. It there a fix for this that I don't
know about besides recoding this page using no viewstate? Any help would be
appreciated!!

System.Web.HttpUnhandledException: Exception of type
System.Web.HttpUnhandledException was thrown. ---> System.Web.HttpException:
The viewstate is invalid for this page and might be corrupted.
at System.Web.UI.Page.LoadPageStateFromPersistenceMed ium()
at System.Web.UI.Page.LoadPageViewState()
at System.Web.UI.Page.ProcessRequestMain()
--- End of inner exception stack trace ---
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain()
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at
System.Web.CallHandlerExecutionStep.System.Web.Htt pApplication+IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
completedSynchronously)

Thanks,

Nick Weg
Nov 18 '05 #2
Teemu,

Thanks for the info! I have read a couple of the articles you have recommended before. We donot operate in a Web Farm enviorment so that cause is ruled out. We don't have any data that contains many decimals places so that cause is ruled out. We do not do any server.transfers so that cause is ruled out. The error we get doesn't provides us with any useful information so the fix they offer may help us determine what the error is in more detail. Also, this may be the cause: You modify your pages, which causes the shadow, copied files in the Temporary ASP.NET files folder to be regenerated. A user has a copy of the page that was requested before this change, and the user posts the page after the files in that folder were regenerated. The only problem with this idea is we don't change the files that are experiencing this issue very often. So, my next question would be: let's say we modified one of these pages 2 weeks ago. Could a person who hasn't accessed this page for 2 months still have a old copy which could cause this problem? Before we go applying any of these fixes to the .NET framework, we want to be confident that we are applying the correct fix. Microsoft scares my by saying we should only apply the fix if we know it will solve the issue. Any advice would help us out greatly!!! Have you heard of this problem before?

Thanks for your help!

Nick Wegner
Nov 18 '05 #3
Hi,

and there aren't any indication of extra application startup in logs
whatsoever? I am just after that if machine keys change (as they do when
they are autogenerated) which could be one reason. See this article:
http://www.eggheadcafe.com/articles/20030514.asp

how to setup machine keys to be static (even if you don't have a web farm)
so that app restart wouldn't change them

And to answer your question, I've seen people having problems with this. And
no, there wouldnt' be any copies after two months. Just to ask more, in
exactly what kind of situation & page the error arises? What Framework
version you had?

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
"Nick Weg" <nwegner('remove")@flightschedulepro.com> wrote in message
news:E7**********************************@microsof t.com...
Teemu,

Thanks for the info! I have read a couple of the articles you have
recommended before. We donot operate in a Web Farm enviorment so that cause
is ruled out. We don't have any data that contains many decimals places so
that cause is ruled out. We do not do any server.transfers so that cause is
ruled out. The error we get doesn't provides us with any useful information
so the fix they offer may help us determine what the error is in more
detail. Also, this may be the cause: You modify your pages, which causes
the shadow, copied files in the Temporary ASP.NET files folder to be
regenerated. A user has a copy of the page that was requested before this
change, and the user posts the page after the files in that folder were
regenerated. The only problem with this idea is we don't change the files
that are experiencing this issue very often. So, my next question would be:
let's say we modified one of these pages 2 weeks ago. Could a person who
hasn't accessed this page for 2 months still have a old copy which could
cause this problem? Before we go applying any of these fixes to the .NET
framework, we want to be confident that we are applying the correct fix.
Microsoft scares my by saying we should only apply the fix if we know it
will solve the issue. Any advice would help us out greatly!!! Have you
heard of this problem before?

Thanks for your help!

Nick Wegner
Nov 18 '05 #4
Hi Nick,

Here is a dicussion on this:
http://webwizguide.info/forum/forum_...?TID=5744&PN=1

Hope this helps.
Regards,
Marshal Antony
..NET Developer
http://www.dotnetmarshal.com
"Nick Weg" <nwegner('remove')@flightschedulepro.com> wrote in message
news:8D**********************************@microsof t.com...
Hello,

We have a web application developed in .NET using VB.NET. We get the error below every now and then and can't figure out how to correct it. The
viewstate this error refers to is pretty large, but I havn't seen any
restrictions on a viewstates size. It there a fix for this that I don't
know about besides recoding this page using no viewstate? Any help would be
appreciated!!
System.Web.HttpUnhandledException: Exception of type System.Web.HttpUnhandledException was thrown. ---> System.Web.HttpException:
The viewstate is invalid for this page and might be corrupted. at System.Web.UI.Page.LoadPageStateFromPersistenceMed ium()
at System.Web.UI.Page.LoadPageViewState()
at System.Web.UI.Page.ProcessRequestMain()
--- End of inner exception stack trace ---
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain()
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.CallHandlerExecutionStep.System.Web.Htt pApplication+IExecutionSte
p.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously)
Thanks,

Nick Weg

Nov 18 '05 #5

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

Similar topics

2
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...
5
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...
9
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...
3
by: Pradeep | last post by:
Hi, I am storing the DataTable in a ViewState. ViewState("mydata") = dsRedemption.T_Redemption_Dtl Then I am casting the ViewState into a DataTable variable. Dim x As New DataTable x =...
2
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
2
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...
4
by: Robert P. | last post by:
I can easily store a one-dimensional array in viewstate ( see Test1 ) If I try storing a multi-dimensional array in the viewstate it's crapping out on me when it goes to serialize the array (not...
5
by: Steve Richter | last post by:
In my user control I want to read the ViewState dictionary of the Parent control. But this sensible idea is not permitted by the compiler: Compiler Error Message: CS1540: Cannot access...
2
by: ce | last post by:
Being a newbie regarding serialization and memorystreams, I was trying to see if i could improve page performance (avoiding going to the db on a postback) by saving my serialized business object in...
11
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...

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.