After some tough error research I've found the reason of a problem of mine I don't understand. I have a page with form controls that resides inside a nested masterpage. Whenever I try to run the form I run into this error:

The state information is invalid for this page and might be corrupted.
[FormatException: The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters. ]

If I choose to run the form as a clean page without any reference to the masterpage it posts perfect.

I have tried the following solutions with no luck:

  • I've added a validationKey in the web.config
  • I've set the enableEventValidation="true", enableViewState="true" and left the enableViewStateMac="true" as stated in the MSDN documentation.

Do you guys have an explanation to why this error occurs and some advice on how to solve it?

Related posts

Recent Viewed