Asp.net Unable To Validate Data Error
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you
Unable To Validate Data Encryptordecryptdata
might have Meta Discuss the workings and policies of this site unable to validate data machinekey About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or system.web.configuration.machinekeysection.encryptordecryptdata(boolean fencrypt posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of
Asp Net Membership Getpassword Unable To Validate Data
4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up “System.Web.HttpException: Unable to validate data” error in VS Development Server but not in IIS up vote 8 down vote favorite 2 I am using Visual Studio 2010 SP1 in Windows 7 64bit dev box. My asp.net
Exception Details: System.web.httpexception: Unable To Validate Data.
works fine when using IIS on the box but when I switch to using Visual Studio Development Server, I get an exception "System.Web.HttpException: Unable to validate data" in this line (in Application_AuthenticateRequest event in global.asax.cs): FormsAuthenticationTicket authTicket = FormsAuthentication.Decrypt(authCookie.Value); Why does this fail when using the internal web server? asp.net visual-studio-2010 iis share|improve this question edited Jan 25 '12 at 21:00 Michiel van Oosterhout 17.4k1265109 asked Jan 25 '12 at 20:52 Tony_Henrich 11.6k42151272 add a comment| 3 Answers 3 active oldest votes up vote 13 down vote accepted Try deleting your cookies after you switch servers. Both servers have their own configuration and probably their own decryption key with which the forms authentication cookie is encrypted and decrypted. Thus, if you still have the cookie encrypted by IIS, then switch the project to use the built-in development server and hit the site, that server can't decrypt the cookie. You can prevent this issue if you put the decryption key in
ASP.NET Community Standup Forums Help Home/ASP.NET Forums/General ASP.NET/State Management/System.Web.HttpException: Unable to validate data. System.Web.HttpException: Unable to validate data. [Answered]RSS 25 replies asp.net machinekey Last post Aug 12, 2010 04:16 PM by Dude-man ‹ Previous
This Implementation Is Not Part Of The Windows Platform Fips Validated Cryptographic Algorithms.
Thread|Next Thread › Print Share Twitter Facebook Email Shortcuts Active Threads Unanswered Threads Unresolved Threads Support machinekey generator Options Advanced Search Reply bojan.jovici... Member 4 Points 23 Posts System.Web.HttpException: Unable to validate data. Jan 13, 2007 03:34 PM|bojan.jovicic|LINK I am having following exception raised only on http://stackoverflow.com/questions/9010096/system-web-httpexception-unable-to-validate-data-error-in-vs-development-serv one page of website: System.Web.HttpException: Unable to validate data. at System.Web.Configuration.MachineKeySection.GetDecodedData(Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Int32& dataLength) at System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) I have checkedearlier threads about this problem,and tried several things, but to no avail. Here is relevant information for my situation: I am not usingfarm environment. I think problem is not http://forums.asp.net/t/1063094.aspx?System+Web+HttpException+Unable+to+validate+data+ connected with worker process recycling because ithappens dozen times a day, and workerproces is set to recyclein interval greater than one day. I am not using Server.Transferin code. The requests are from different logged users, with different IPs, so they arent bots I am using ASP.NET 2.0 The page in question contains one grid view, several link buttons and is using master page. The only thing I am directly usingViewState for is for PageIndex. Do you think that setting ViewState key in machine.config will help (I amusing hosted environment, sothis willrequire theirintervention)? What else could be thecause? Regards, -- Bojan Jovicic bojan.jovicic@gmail.com www.bojanjovicic.com Reply albertpascua... Contributor 5578 Points 3355 Posts MVP Re: System.Web.HttpException: Unable to validate data. Jan 13, 2007 04:55 PM|albertpascual|LINK I believe I have seen your post before asking the same question. My question is: Are you using Threads on the web app, if you do so, remove them and you won't get that error. Cheers Al My Blog Reply bojan.jovici... Memb
Latest Articles Latest Tips/Tricks Top Articles Beginner Articles Technical Blogs Posting/Update Guidelines Article Help Forum Article Competition Submit an article or tip Post your Blog quick answersQ&A Ask a Question about this article Ask http://www.codeproject.com/Articles/43637/Weird-Error-Unable-to-Validate-Data-in-ASP-NET-web a Question View Unanswered Questions View All Questions... C# questions Linux questions ASP.NET questions https://channel9.msdn.com/Forums/TechOff/257932-Unable-to-validate-data-static-machineKey-no-good SQL questions VB.NET questions discussionsforums All Message Boards... Application Lifecycle> Running a Business Sales / Marketing Collaboration / Beta Testing Work Issues Design and Architecture ASP.NET JavaScript C / C++ / MFC> ATL / WTL / STL Managed C++/CLI C# Free Tools Objective-C and Swift Database Hardware & Devices> System Admin Hosting and Servers Java .NET unable to Framework Android iOS Mobile SharePoint Silverlight / WPF Visual Basic Web Development Site Bugs / Suggestions Spam and Abuse Watch features Competitions News The Insider Newsletter The Daily Build Newsletter Newsletter archive Surveys Product Showcase Research Library CodeProject Stuff communitylounge Who's Who Most Valuable Professionals The Lounge The Insider News The Weird & The Wonderful The Soapbox Press Releases Non-English Language > General Indian Topics General Chinese Topics help unable to validate What is 'CodeProject'? General FAQ Ask a Question Bugs and Suggestions Article Help Forum Site Map Advertise with us About our Advertising Employment Opportunities About Us Articles » General Programming » Bugs & Workarounds » .NET issues Technical BlogView BlogBrowse CodeStatsRevisions (3)Alternatives Comments (12) Add your ownalternative version Tagged as All-TopicsASP.NET Stats 62K views7 bookmarked Posted 8 Nov 2009 Weird Error: Unable to Validate Data in ASP.NET website Abhishek Sur, 8 Nov 2009 CPOL 4.89 (7 votes) 1 2 3 4 5 4.89/5 - 7 votesμ 4.89, σa 0.90 [?] Rate this: Please Sign up or sign in to vote. A weird error that comes when a page is opened for a long time and then posted back Have you ever come across a situation where your website which was working for the last couple of months gives a weird error "Unable to Validate Data". Yesterday, while working I found that my website which is already published in IIS throws this error. Initially I thought the error might be with my code, but I found that everything is good with the code. So I looked forward to internet and found that this error comes when the viewstate of a page cannot be decrypted when the respo
information from MSDN Visual Studio Achievements Latest Achievement: Loading Visual Studio Achievements Something went wrong getting the Visual Studio Achievements Follow us @ch9 Subscribe to Channel 9 Sign In Channel9 Browse Tags Shows Series Blogs Authors Events Topics Coding4Fun Windows Azure Visual Studio DevOps Microsoft Mechanics MVPs Forums Coffeehouse Site Feedback Tech Off Build Events WinHEC Visual Studio TechEd Build Microsoft Ignite Azure Speakers ForumsTechOff Unable to validate data - static machineKey nogood!! Subscribe Oops, something didn't work. Try again? Sign In to subscribe to this conversation What does this mean? Subscriptions allow us send you email notifications when new content is added. You need to be signed in to Channel 9 to use this feature. Getting subscription Unsubscribe to this conversation Subscribe to this conversation What does this mean? Subscriptions allow us send you email notifications when new content is added. Unsubscribing Subscribing Did you know you cansign up for email notifications? RSS reddit Tweet quantass Oct 01, 2007 at5:24PM Im using ASP.NET v1.1 on IIS6. The error we're receivng is: 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(By