Home > Unable To > System.web.httpexception: Unable To Validate Data.

System.web.httpexception: Unable To Validate Data.


Yesterday, while working I found that my website which is already published in IIS throws this error. share|improve this answer answered Oct 31 '08 at 19:08 Jeffrey Harrington 1,29211023 thanks for the info. Go to top Permalink | Advertise | Privacy | Terms of Use | Mobile Web02 | 2.8.161220.1 | Last Updated 8 Nov 2009 Article Copyright 2009 by Abhishek SurEverything else Copyright Where should a galactic capital be? http://popupjammer.com/unable-to/unable-to-validate-data-system-web-configuration-machinekeysection-encryptordecryptdata.html

share|improve this answer answered Nov 11 '15 at 19:39 n0rd 4,59821835 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign I didnt came across this very recently. Privacy Policy Support Terms of Use Sign In Join Search IIS Home Downloads Learn Reference Solutions Technologies .NET Framework ASP.NET PHP Media Windows Server SQL Server Web App Gallery Microsoft I reproduced the problem a few times to make sure it was not a false alarm (I use ASP.NET 3.5).

System.web.httpexception: Unable To Validate Data.

The machinekey and decryptionKey was the same in all web.config but some web.config had and other did not. At Customer's Server: The application installed successfully and lets me log in successfully. share|improve this answer edited Sep 26 '08 at 17:07 answered Sep 26 '08 at 16:21 Chris Van Opstal 22.3k65281 1 Thanks, especially for the MS article. –wprl Sep 26 '08 Reply Ergole None 0 Points 2 Posts Re: Unable to validate data, EncryptOrDecryptData problem Feb 05, 2014 04:19 AM|Ergole|LINK We have exactly the same problem here : since we installed Framework

Update: Microsoft article on the issue. Initially we disabled the ViewStateMac property (enableViewStateMac="false" in the page directive) to solve it, but this is not a true solution to the problem and can threaten data integrity. Exception Error Message: Unable to validate data. Asp Net Membership Getpassword Unable To Validate Data At least, sharing this experience might be helpful to some.

What are Iron nuggets and what can they be used for? The exact error is (french server) : Code de l'événement: 3012 Message d'événement: Une erreur s'est produite lors du traitement d'une requête de ressource de script ou Web. As a whole, your article-explanation still fits my observations except I am now looking to understand as to why the decryption key at Virtual Directory (different from that at the machine.config) http://stackoverflow.com/questions/140303/asp-net-unable-to-validate-data That is perhaps why you see this error after an idle period and you try to use a "stale" page.

The viewstate is actually decrypted in the server using a secret Machine key which resides on the server. Machinekey Generator To do this, you need to use the following: You might use this site to Generate your validation key as well.To get deep knowledge on But still the error.Finally I used "EnableViewStateMac =false" in pages section. So our problem was that some Webresource.axd requests are cached by browsers (we didn't knew that...) but our machinekeys changes.

System.web.configuration.machinekeysection.encryptordecryptdata(boolean Fencrypt

What are the considerations for waterproofing a building's first few floors? https://support.microsoft.com/en-us/kb/2431728 If the Ch’in dynasty was so short-lived, why was China named for it? System.web.httpexception: Unable To Validate Data. Multirow is cut off What does HR do for me? Unable To Validate Data Formsauthentication Decrypt For me, what happened was that I changed an IIS website path to a different site that uses the same ASP.NET forms solution and the same domain-based cookies BUT a different

What change in history would I have to make to stop Christmas from happening? http://popupjammer.com/unable-to/unable-to-validate-data-encryptordecryptdata.html Sign In·ViewThread·Permalink Thank you! We can mention the machine key in Web.config too so that it uses it for the current website. It choked when decrypting data encrypted by the previous site. System.web.httpexception (0x80004005): Unable To Validate Data.

more hot questions question feed default about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation see the stack trace below.

 [HttpException (0x80004005): Unable to validate data.] System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, IVType ivType, Boolean useValidationSymAlgo, Boolean signData) +1008 System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean Probably decrypting passwords uses a differentmethod so it fails. http://popupjammer.com/unable-to/asp-net-unable-to-validate-data.html Join Now For immediate help use Live now! 

Why do you never advise developpers when you change such a big thing ???????? This Implementation Is Not Part Of The Windows Platform Fips Validated Cryptographic Algorithms. Is this sentence 'I know him a teacher.' acceptable? Your encryption becomes "portable", thus your viewstate becomes "portable".

I'm not aware of any of myusers getting the error, even though they are logged about once a minute 24x7, so I suspect there are web robots causing them.

That fixed the issue for me –WhoCares Aug 1 '14 at 19:47 add a comment| up vote 2 down vote I found that when the local security policy for "System crytography:use Let us talk a little on that note.Say you made a request for a page in the server. As for the other links you provided, I am confused. 0 Message Author Comment by:zhshqzyc ID: 373507612011-12-29 0 Message Author Comment by:zhshqzyc ID: 373507882011-12-29 If you need to be compatible with the < .NET 4.5 Framework you will need a compatibility tag: See http://msdn.microsoft.com/en-us/library/system.web.configuration.machinekeysection.compatibilitymode.aspx or http://blogs.msdn.com/b/webdev/archive/2012/10/23/cryptographic-improvements-in-asp-net-4-5-pt-2.aspx for details.

I even disabled this for the entire viewstate for the website using Web.config. The error you are getting says "ensure that configuration specifies the same validationKey and validation algorithm". Request URL: http://domainname/WebResource.axd?d=vIkcOYaxqSd6eMCUlxDkdQVxjxcaRV8fWPLFaNn8W4w1&t=633802992069218315&AspxAutoDetectCookieSupport=1 Request path: /WebResource.axd Stack trace: at System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Boolean useValidationSymAlgo, Boolean useLegacyMode, IVType ivType, Boolean signData) They began after I his comment is here share|improve this answer edited Jun 3 '10 at 4:31 answered Jun 3 '10 at 4:21 ileon 1,35711723 add a comment| up vote 2 down vote I got this error when I

He loves to code and in his leisure you always find him talking about technical stuffs. Initially I thought the error might be with my code, but I found that everything is good with the code. Setting the validation method to 3DES eliminates this issue, but we have a requirement to work with SHA1. more hot questions question feed lang-cs about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation