SERVER ERROR - UNABLE TO VALIDATE DATA

Does anyone know how to correct this? and if so... How?


Server Error in '/' Application.
--------------------------------------------------------------------------------

Unable to validate data.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Unable to validate data.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[HttpException (0x80004005): Unable to validate data.]
System.Web.Configuration.MachineKey.GetDecodedData(Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Int32& dataLength) +195
System.Web.UI.LosFormatter.Deserialize(String input) +60

[HttpException (0x80004005): Authentication of viewstate failed. 1) If this is a cluster, edit <machineKey> configuration so all servers use the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster. 2) Viewstate can only be posted back to the same page. 3) The viewstate for this page might be corrupted.]
System.Web.UI.LosFormatter.Deserialize(String input) +118
System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +102

[HttpException (0x80004005): Invalid_Viewstate
Client IP: 69.194.58.179
Port: 1216
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FunWebProducts-MyWay; SV1; .NET CLR 1.1.4322; .NET CLR 1.0.3705)
ViewState: dDwtMzgwNjA1Nzc2O3Q8O2w8aTwzPjs+O2w8dDw7bDxpPDE+O2k8Mz47aTw3PjtpPDk+Oz47bDx0PHA8cDxsPFRleHQ7PjtsPFw8aW1nIHNyYz0ndG9wSW1hZ2VzLzMuanBnJyB3aWR0aD0nNzkwJyBoZWlnaHQ9JzE1MSdcPjs+Pjs+Ozs+O3Q8cDxwPGw8VGV4dDs+O2w8XDxhIGhyZWY9J2xvZ2luLmFzcHgnXD5Mb2dpblw8L2FcPjs+Pjs+Ozs+O3Q8O2w8aTwxPjtpPDM+Oz47bDx0PHQ8OztsPGk8MD47Pj47Oz47dDxAMDxwPHA8bDxEYXRhS2V5cztfIUl0ZW1Db3VudDtQYWdlQ291bnQ7XyF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wPHA8bDxDb21tYW5kQXJndW1lbnQ7PjtsPDEzMTg7Pj47PjtsPGk8MD47PjtsPHQ8QDwxMzE4Oz47Oz47Pj47dDxAPFNlbWkgMjAwNC0yMDA1O01yLiBTdGVwb25hczsyLzE3LzIwMDUgMTI6MDA6MDAgQU07Pjs7Pjs+Pjs+Pjt0PDtsPGk8MT47PjtsPHQ8O2w8aTwxPjtpPDI+Oz47bDx0PHA8cDxsPENvbW1hbmRBcmd1bWVudDs+O2w8MTMxNzs+Pjs+O2w8aTwwPjs+O2w8dDxAPDEzMTc7Pjs7Pjs+Pjt0PEA8U2VtaSAyMDA0LTIwMDU7TXIuIFN0ZXBvbmFzOzIvMTcvMjAwNSAxMjowMDowMCBBTTs+Ozs+Oz4+Oz4+Oz4+Oz4+Oz4+O3Q8QDA8cDxwPGw8VmlzaWJsZTs+O2w8bzxmPjs+Pjs+Ozs7Ozs7Ozs7Oz47Oz47Pj47Pj47PgFLQAUmFCiJAwMBfnV6V0F5IuFF
Http-Referer: http://www.etobicokeci.com/newPictures.aspx 
Path: /newPictures.aspx.]
System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +448
System.Web.UI.Page.LoadPageViewState() +18
System.Web.UI.Page.ProcessRequestMain() +447




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032
LVL 1
bonfire89Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

amit_gCommented:
That happens because the key used to encrypt/decrypt view state got changed. This could happen if you are using a web farm (load balanced web servers) or the user kept the page open for a long duration.

Give fixed value in machineKey section in web.config ...

<configuration>
<system.web>
<machineKey validationKey='A96B2F3BF50A1A2A1B81214A550B89F2A318B3712FB5AC8CD82AF4F3925B3C6ED58CF5F38503629A78BF8C27B1B736C4E84DACE342AB83A42932B44EBC3D7601'  
   decryptionKey='D01201C69DF5E9863133028CBD4E6EEFC45B5E609D7F4107'   validation='SHA1'/>
...
...

The default value for it is ...

<machineKey validationKey="AutoGenerate,IsolateApps"
            decryptionKey="AutoGenerate,IsolateApps"
            validation="SHA1"/>

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/gngrfmachinekeysection.asp

Make sure to follow minimum key length for the validation method used. Follow instructions in the above article.

You could also acheive the same by disabling the enableViewStateMac.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/gngrfpagessection.asp
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
bonfire89Author Commented:
fantastic... that helped a lot!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.