Hari Gillala
Hari Gillala

Reputation: 11926

"state information is invalid for this page" error

I have an error comes up in aspx page:

The state information is invalid for this page and might be corrupted.

What would be the problem?

Upvotes: 0

Views: 4760

Answers (4)

Ahmad Maleki
Ahmad Maleki

Reputation: 1495

I had the same issue and I was killing myself. Apparently I had two <form runat="server">...</form>. You are allowed to have two <form> tags but only one of them can have runat="server" attribute.

Upvotes: 0

Jeroen
Jeroen

Reputation: 4023

This can happen when you're rebuilding the control tree on postback and it's not exactly the same as the control tree when you were databinding/loading the page the first time (before postback).

Upvotes: 0

Rup
Rup

Reputation: 34408

I think this also happens if you post one page's viewstate to another page - you have to wire this up first or post back to the same page and redirect the request to the other page on the server side.

Upvotes: 1

Ashish Jain
Ashish Jain

Reputation: 4797

This can happen once the ViewState is corrupted. Also is there ViewState Validation enabled i.e. EnableViewStateMAC=true in Page?

Upvotes: 1

Related Questions