Connecting Tech Pros Worldwide Forums | Help | Site Map

Apparent ViewState Problem

Bill
Guest
 
Posts: n/a
#1: Nov 17 '05
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



Alvin Bruney - ASP.NET MVP
Guest
 
Posts: n/a
#2: Nov 17 '05

re: Apparent ViewState Problem


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" <bill@test.com> wrote in message
news:eQ6cxSN0FHA.736@tk2msftngp13.phx.gbl...[color=blue]
> I've been chasing this problem around for a few days now and its driving[/color]
me[color=blue]
> nuts. We keep getting these errors in our web application intermittently.
> I can't cause the problem myself to attempt to reproduce. From the[/color]
reading[color=blue]
> I've done, people run into this when urlencoding and urldecoding[/color]
improperly,[color=blue]
> 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[/color]
where[color=blue]
> 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
>
>[/color]


Closed Thread