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

Apparent ViewState Problem

I've been chasing this problem around for a few days now and its driving me
nuts. We keep getting these errors in our web application intermittently.
I can't cause the problem myself to attempt to reproduce. From the reading
I've done, people run into this when urlencoding and urldecoding improperly,
but I don't think that is the case here. It looks like there's an issue
with the ViewState...perhaps its getting corrupted or truncated (hence the
call System.Web.UI.Page.LoadPageStateFromPersistenceMed ium) in the trace
below.

From reading MSDN, I thought that if a ViewState excpetion occurred, the
InnerException object was set so then you could retrieve the ViewState where
the error occurred and decode it. That doesn't seem to happen in this
instance.

Anyway, if anyone has seen this issue and has any insight, I'd definitely
appreciate any help. Thanks!

Invalid length for a Base-64 char array.

Source:mscorlib

Stack Trace: at System.Convert.FromBase64String(String s)

at System.Web.UI.LosFormatter.Deserialize(String input)

at System.Web.UI.Page.LoadPageStateFromPersistenceMed ium()

http://www.frightcatalog.com
Nov 17 '05 #1
1 1449
I published an article on this here:
http://support.microsoft.com/default...b;en-us;555353
--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------

"Bill" <bi**@test.com> wrote in message
news:eQ*************@tk2msftngp13.phx.gbl...
I've been chasing this problem around for a few days now and its driving me nuts. We keep getting these errors in our web application intermittently.
I can't cause the problem myself to attempt to reproduce. From the reading I've done, people run into this when urlencoding and urldecoding improperly, but I don't think that is the case here. It looks like there's an issue
with the ViewState...perhaps its getting corrupted or truncated (hence the
call System.Web.UI.Page.LoadPageStateFromPersistenceMed ium) in the trace
below.

From reading MSDN, I thought that if a ViewState excpetion occurred, the
InnerException object was set so then you could retrieve the ViewState where the error occurred and decode it. That doesn't seem to happen in this
instance.

Anyway, if anyone has seen this issue and has any insight, I'd definitely
appreciate any help. Thanks!

Invalid length for a Base-64 char array.

Source:mscorlib

Stack Trace: at System.Convert.FromBase64String(String s)

at System.Web.UI.LosFormatter.Deserialize(String input)

at System.Web.UI.Page.LoadPageStateFromPersistenceMed ium()

http://www.frightcatalog.com

Nov 17 '05 #2

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

Similar topics

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: Steve Drake | last post by:
All, I have a CONTROL that contains 1 control (Control ONE), the 1 control that it can contain 1 or 2 control (Control A and B). Control A, raises and event and Control ONE receives this event...
2
by: Ben Rush | last post by:
Hello World, Okay, I have spent the day browsing the newsgroups and reading up on article after article concerning ViewState corruption and so forth, and I have a couple questions. We...
10
by: neo | last post by:
hi, I am studying ASP.NET and have few questions - 1) The session ID and values of controls is stored in VIEWSTATE variable. So now when we put EnableViewState="false" in Page directive and...
0
by: John Crowley | last post by:
I'm having an odd problem with viewstate and a dynamically created control inside a repeater template. Basically, I have a repeater setup like this in the aspx:
2
by: Jay Walker | last post by:
I created a custom DataGridColumn based on Marcie Robillard's MSDN Article: Creating Custom Columns for the ASP.NET Datagrid...
6
by: hlubocky | last post by:
I thought I had a good grasp of the problem related to dynamically creating controls, but it appears that as my application grew in complexity, the problem has resurfaced. As I understand it, in...
1
by: jelle.huygen | last post by:
Hello, I have a problem in ASP.NET 2.0 with the viewstate of my dynamically added user control. I have reproduced the problem with a very simple user control and a very simple page. On my...
0
by: Scott Roberts | last post by:
I always thought that the viewstate "keys" included the control ID. As long as the control IDs were unique, there shouldn't be any conflicts. Well, it appears that that may not be the case with...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...

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.