473,394 Members | 1,755 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,394 software developers and data experts.

Need Help With ViewState Error

We keep getting the following error:

-----------------------------------------------------------------------------------------------
Final Exception
System.Web.HttpUnhandledException: Exception of type
System.Web.HttpUnhandledException was thrown. --->
System.Web.HttpException: Invalid_Viewstate_Client_Disconnected Client
IP: 65.83.116.10 Port: 40561 User-Agent: Mozilla/4.0 (compatible; MSIE
6.0; Windows NT 5.1; .NET CLR 1.1.4322) ViewState:

//View State Omitted (VERY LARGE)

System.FormatException: Invalid length for a Base-64 char array. at
System.Convert.FromBase64String(String s) at
System.Web.UI.LosFormatter.Deserialize(String input) at
System.Web.UI.Page.LoadPageStateFromPersistenceMed ium() --- End of inner
exception stack trace --- at
System.Web.UI.Page.LoadPageStateFromPersistenceMed ium() at
System.Web.UI.Page.LoadPageViewState() at
System.Web.UI.Page.ProcessRequestMain()
----------------------------------------------------------------------------------------------

We are using .NET 1.1. We do not have a webfarm or garden. The application
is on a server running Windows Server 2003 Standard.

Does anyone know how to resolve this error? We have looked everywhere and
cannot find a solution to this problem.

Thanks in advance!

--
Nick Wegner
MCP
Apr 4 '06 #1
4 3719
This is a guess: it appears that you have many controls on your form
with wievstate enabled. And becouse of that the hidden filed that holds
the view state got very large.
Judging from this:
System.FormatException: Invalid length for a Base-64 char array. at
System.Convert.FromBase64String(String s) at

Try setting the ViewState to false on every control that does' not need
a viewstate.
Hope this helps.

lp
Jan Hancic
http://cwizo.blogspot.com

Apr 4 '06 #2
Jan,

We do not have any controls on this form that do not need thier viewstate.
Are you pretty sure that this issue is the size of the viewstate and not some
other issue?

If this is the problem, then the only way to resolve it is to repopulate the
controls every time the page is loaded, right?

--
Nick Wegner
MCP
"ja********@gmail.com" wrote:
This is a guess: it appears that you have many controls on your form
with wievstate enabled. And becouse of that the hidden filed that holds
the view state got very large.
Judging from this:
System.FormatException: Invalid length for a Base-64 char array. at
System.Convert.FromBase64String(String s) at

Try setting the ViewState to false on every control that does' not need
a viewstate.
Hope this helps.

lp
Jan Hancic
http://cwizo.blogspot.com

Apr 4 '06 #3
I am not shure. I am just making conclusion from th exception.
Just how many controls are we talking about here? And what type of
controls.

You could also split the form into multiple forms...

lp
Jan Hancic
http://cwizo.blogspot.com

Apr 4 '06 #4
this error is generally caused by the viewstate being too large and getting
truncated by a proxy server.

-- bruce (sqlwork.com)

"AviationDev" <Av*********@discussions.microsoft.com> wrote in message
news:AA**********************************@microsof t.com...
We keep getting the following error:

-----------------------------------------------------------------------------------------------
Final Exception
System.Web.HttpUnhandledException: Exception of type
System.Web.HttpUnhandledException was thrown. --->
System.Web.HttpException: Invalid_Viewstate_Client_Disconnected Client
IP: 65.83.116.10 Port: 40561 User-Agent: Mozilla/4.0 (compatible; MSIE
6.0; Windows NT 5.1; .NET CLR 1.1.4322) ViewState:

//View State Omitted (VERY LARGE)

System.FormatException: Invalid length for a Base-64 char array. at
System.Convert.FromBase64String(String s) at
System.Web.UI.LosFormatter.Deserialize(String input) at
System.Web.UI.Page.LoadPageStateFromPersistenceMed ium() --- End of inner
exception stack trace --- at
System.Web.UI.Page.LoadPageStateFromPersistenceMed ium() at
System.Web.UI.Page.LoadPageViewState() at
System.Web.UI.Page.ProcessRequestMain()
----------------------------------------------------------------------------------------------

We are using .NET 1.1. We do not have a webfarm or garden. The
application
is on a server running Windows Server 2003 Standard.

Does anyone know how to resolve this error? We have looked everywhere and
cannot find a solution to this problem.

Thanks in advance!

--
Nick Wegner
MCP

May 22 '06 #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...
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: 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...
1
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...
2
by: Jerry O | last post by:
Hi, I appear to have a problem where the user is not kicked back to the forms authentictation url when they post a webform, via a get, that results in a long url due to viewstate. Instead they...
7
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...
2
by: Jarod | last post by:
Hey I change backColor of linkButton in my Page_Load: lbDoSth.BackColor = Color.Red; But I have multiView on this page. On one of the views I have detailsView. When I add a new row a set...
3
by: Ken Shimizu | last post by:
I get an error when submitting an .ASPX page in Safari beta, MAC and PC document.getElementbyId(‘FolderBrowser’).submit(); After the server side code has executed without problems I get the...
0
by: nithagowda | last post by:
Hello, I have a DropDownList for source type and a panel for displaying TreeView based on the source type.. The problem is- if i select different source type drom ddlSrcType, other than the...
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: 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
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...
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...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...

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.