You receive an error message when you try to open a Web page in an ASP.NET application (867472)
The information in this article applies to:
- Microsoft ASP.NET (included with the .NET Framework 1.1)
- Microsoft ASP.NET (included with the .NET Framework) 1.0
SYMPTOMSWhen you try to open a Web page in your Microsoft ASP.NET application, you receive the following error: The view state is invalid for this page, and may be corrupt. CAUSEThis problem may occur when you enable cross-site scripting detection on Check Point Firewall on your private network. The cross-site scripting check may corrupt the view state of the ASP.NET application page.WORKAROUNDTo work around this problem, you can disable the cross-site scripting detection or you can store the view state on the server. To disable cross-site scripting detection on your Check Point Firewall-1, see your Check Point Firewall-1 documentation. For more information, visit the following Check Point Web site:
Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.
To store the view state on the server, use the following code sample: C#:
protected override object LoadPageStateFromPersistenceMedium() {
return Session["_ViewState"];
}
protected override void SavePageStateToPersistenceMedium(object viewState)
{
Session["_ViewState"] = viewState;
}
VB.NET
Protected Overrides Function LoadPageStateFromPersistenceMedium() As Object
Return Session("_ViewState")
End Function
Protected Overrides Sub SavePageStateToPersistenceMedium(ByVal viewState As Object)
Session("_ViewState") = viewState
End Sub
REFERENCES
For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
829743
Troubleshooting the "View state is invalid" error with ASP.NET
The third-party products that this article discusses are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, regarding the performance or reliability of these products.
| Modification Type: | Major | Last Reviewed: | 8/10/2004 |
|---|
| Keywords: | kbprb KB867472 kbAudDeveloper |
|---|
|