Invalid length for a Base-64 char array

Discussion in 'ASP.NET / ASP.NET Core' started by jrssnyder, Jun 13, 2005.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Hi all,


    I am intermittently getting the error below (I cannot reproduce it when I try) on my Asp.Net site. As you can tell from the stacktrace information, I really cannot see where in my code, if at all, this error is arising.


    I have never seen this error on my local development system, or in any of the places I have worked doing Web development. Yet, it is fairly common (though intermittent) on this site.


    Can anyone tell me what might be causing this, and what I might do about it?


    Thanks,





    -- John


    ******************


    Error Message: Invalid length for a Base-64 char array.


    Stack Trace:


    at System.Convert.FromBase64String(String s) at


    System.Web.UI.LosFormatter.Deserialize(String input) at


    System.Web.UI.Page.LoadPageStateFromPersistenceMedium()
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    did some research, this error looks like is cause by a corrupted viewstate.

    do you keep a lot of data in the view state?

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  3. Thanks for responding.

    Yes, I keep a ton of stuff in viewstate. But that is not something that's going to change. What I don't understand is why it is getting corrupted, and/or what I can do about it.

    -- John
     
  4. Bruce

    Bruce DiscountASP.NET Staff

    well.. that's beats me..

    it looks like an ASP.NET issue based on the posting on the internet.

    i'll post here if i find anything else.

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  5. Thanks for trying.
     
  6. Bruce

    Bruce DiscountASP.NET Staff

    We've seen this problem couple times on our control panel. tried everything we could think of but weren't able to figure anything out.

    Let me know if you figure this out too.

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page