Cassini webserver and Viewstate

J

Jonas Nilsson

I have a webapplication that runs with out any errors under
MS IIS 5 / 6.

But when I try to run it under MS Cassini web server i get this error if i
have
a big Viewstate ( A datagrid or a treecontrol with a lot of data ).

#######################################################################
[FormatException: Invalid character in a Base-64 string.]
System.Convert.FromBase64String(String s) +0
System.Web.UI.LosFormatter.Deserialize(String input) +25
System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +101

[HttpException (0x80004005): Invalid_Viewstate
Client IP: 127.0.0.1
Port:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR
1.1.4322)
#######################################################################

/Jonas
 
B

bruce barker

the viewstate is proably truncated, some proxy servers will do this also, so
the real fix is to reduce the viewstate payload. your site uses will be
happy also.

-- bruce (sqlwork.com)


| I have a webapplication that runs with out any errors under
| MS IIS 5 / 6.
|
| But when I try to run it under MS Cassini web server i get this error if
i
| have
| a big Viewstate ( A datagrid or a treecontrol with a lot of data ).
|
| #######################################################################
| [FormatException: Invalid character in a Base-64 string.]
| System.Convert.FromBase64String(String s) +0
| System.Web.UI.LosFormatter.Deserialize(String input) +25
| System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +101
|
| [HttpException (0x80004005): Invalid_Viewstate
| Client IP: 127.0.0.1
| Port:
| User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR
| 1.1.4322)
| #######################################################################
|
| /Jonas
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top