Using:
*ASP.NET 1.1
*Single machine (no clusters)
*Simple postbacks (no postbacks to different pages)
*Using only Response.Redirect() when applicable
*The page works fine. The error appears at random occasions.
*I have not been able to repro the error on my dev machine. It happens only
on my production server.
UNHANDLED Exception:
[FormatException: Invalid length for a Base-64 char array.]
System.Convert.FromBase64String(String s)
System.Web.UI.LosFormatter.Deserialize(String input)
System.Web.UI.Page.LoadPageStateFromPersistenceMedium()
[HttpException: Invalid_Viewstate_Client_Disconnected
Client IP: 204.231.101.39
Port: 1585
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET
CLR 1.1.4322)
ViewState:
***50,369 bytes of base64 text***
Http-Referer: http://198.137.76.44/appman/ManageCustomer.aspx
Path: /appman/ManageCustomer.aspx.]
System.Web.UI.Page.LoadPageStateFromPersistenceMedium()
System.Web.UI.Page.LoadPageViewState()
System.Web.UI.Page.ProcessRequestMain()
User Name: xxxx
SessionID: jqg1cr45bvomc445vefeli45
Form Data:
__EVENTTARGET = "Customers"
__EVENTARGUMENT = ""
Thanks in advance,
Dan
Try using HTMLEncode() on the base64 data before sending it to the browser.
-- bruce (sqlwork.com)
"danc" <da...@discussions.microsoft.com> wrote in message
news:7BB57F29-D095-427E...@microsoft.com...
The puzzle is that things work sometime and not others, so I don't know why
there would be a length limit that takes effect only some times (the exact
same data is being transferred). The large viewstate is the result of a
DropdownList control (I will look into removing the need for viewstate) and
is definitively larger than 2K. Other pages use a DataGrid control with an
even larger viewstate and have this problem only rarely (if at all).
I wonder if "Invalid_Viewstate_Client_Disconnected" is a clue.
Any other thoughts?
Regards,
Dan
Anyone have any ideas on how to fix this?
User submitted from AEWNET (http://www.aewnet.com/)
--
Regards,
Alvin Bruney - ASP.NET MVP
[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
Now available @ www.lulu.com/owc
"SmashHuevo" <SmashHuevo@aew_nospam.com> wrote in message
news:ulbFU3qR...@TK2MSFTNGP14.phx.gbl...