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. Advertisements

  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. Advertisements

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:
    423
    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:
    480
    DeWitt Phillips
    Nov 7, 2003
  3. Philipp Richter

    Problem with Cassini Webserver

    Philipp Richter, Jun 9, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    493
    Philipp Richter
    Jun 9, 2004
  4. Paul Fi
    Replies:
    0
    Views:
    823
    Paul Fi
    Sep 10, 2004
  5. jai hanuman

    cassini and asp.net VS install

    jai hanuman, Nov 3, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    520
    jai hanuman
    Nov 3, 2004
  6. Ken Varn
    Replies:
    4
    Views:
    645
    Ken Varn
    Nov 9, 2004
  7. Wiktor Zychla [C# MVP]

    cassini, forms authentication and application folder [2.0]

    Wiktor Zychla [C# MVP], Nov 21, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    3,072
    Wiktor Zychla [C# MVP]
    Nov 21, 2005
  8. emc
    Replies:
    1
    Views:
    321
Loading...