Welcome to AspAdvice Sign in | Join | Help

View State Is Invalid Error message when using Server.Transfer

This is a very common error message we get when we use Server.Transfer with the second parameter set to true, which indicates transferring QueryString as well as Form collection, which contains information about the Form elements.
The common workaround we do is to set EnableViewStateMac to false.

But I read in an article today, that when we store sensitive information in the Viewstate, setting EnableViewStateMac to false, opens a big security hole. Microsoft would not suggest doing this. They suggest transferring server control elements in other ways, setting the element accessors as public. See the following article if you want to know what I am talking about
http://support.microsoft.com/default.aspx?scid=kb;EN-US;316920
Sponsor
Published Tuesday, June 21, 2005 4:59 PM by kreddi

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

No Comments

Leave a Comment

(required) 
required 
(required) 
Enter the code you see below