Cassini webserver and Viewstate

Discussion in 'ASP .Net' started by Jonas Nilsson, Nov 12, 2004.

  1. 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
     
    Jonas Nilsson, Nov 12, 2004
    #1
    1. Advertising

  2. Jonas Nilsson

    bruce barker Guest

    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)


    "Jonas Nilsson" <> wrote in message
    news:...
    | 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
    |
    |
     
    bruce barker, Nov 12, 2004
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Keith Bozek

    cassini and vs.net 2003

    Keith Bozek, Aug 13, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    331
    Keith Bozek
    Aug 13, 2003
  2. DeWitt Phillips

    Cassini, web matrix and viewstate

    DeWitt Phillips, Nov 7, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    398
    DeWitt Phillips
    Nov 7, 2003
  3. Philipp Richter

    Problem with Cassini Webserver

    Philipp Richter, Jun 9, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    429
    Philipp Richter
    Jun 9, 2004
  4. Paul Fi
    Replies:
    0
    Views:
    652
    Paul Fi
    Sep 10, 2004
  5. emc
    Replies:
    1
    Views:
    205
Loading...

Share This Page