Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:640745
More Search Options
RSS Available
Matching Posts
Re: Validation of viewstate MAC failed / The state information is invalid for this page and might be corrupted
thanks you both.
Posted to
State Management
(Forum)
by
crystal.net
on 2/7/2006
Re: Validation of viewstate MAC failed error....
check this out: http://www.aspnetresources.com/tools/keycreator.aspx
Posted to
State Management
(Forum)
by
crystal.net
on 2/6/2006
Re: Validation of viewstate MAC failed / The state information is invalid for this page and might be corrupted
@Eilon no answer is also an answer ;-) thanks anyway.
Posted to
State Management
(Forum)
by
crystal.net
on 2/6/2006
Re: Validation of viewstate MAC failed / The state information is invalid for this page and might be corrupted
@joteke "To clarify, that's because GridView requests View state to be encrypted, since those ID's in database might require secure handling (e.g it does that if DataKeyNames are set). viewStateEncryptionMode setting in config (or corresponding property on Page class) overrides that behaviour. Default mode, Auto, is to encrypt if controls require that, otherwise not." okay, that makes sense. thanks for clarifying :-) @Eilon there are still two questions unanswered: "i've also analyzed the rendered
Posted to
State Management
(Forum)
by
crystal.net
on 2/2/2006
Re: Validation of viewstate MAC failed / The state information is invalid for this page and might be corrupted
oh, i forgot to mention an important thing: you may remember i wrote reported problem only occurs using "DataKeyNames" in GridView. AND THIS IS ABSOLUTELY CORRECT! just have a look at rendered source code. if you are using property "DataKeyNames" you'll get rendered hidden field "__VIEWSTATEENCRYPTED". if you aren't using it, the hidden form field doesn't exist! => so i think this whole event validation/encryption stuff is NOT proper!
Posted to
State Management
(Forum)
by
crystal.net
on 2/1/2006
Re: Validation of viewstate MAC failed / The state information is invalid for this page and might be corrupted
first of all i wanna thank you both, joteke and eilon, for analyzing/supporting this thread! "if you guys add this to web.config, does it still reproduce? <pages validateRequest="false" enableEventValidation="false" viewStateEncryptionMode ="Never" />" this workaround (switching off the whole event validation security) works great. all our applications are running fine now on asp.net 2.0 final with property viewStateExncryptionMode set to Never! i've also analyzed the rendered source code
Posted to
State Management
(Forum)
by
crystal.net
on 2/1/2006
Re: Validation of viewstate MAC failed / The state information is invalid for this page and might be corrupted
hey joteke, thanks for taking time! i've spent the morning for reproducing a small sample page that points out the reported bug. i used a < asp : XmlDataSource> instead of <asp:SqlDataSource> for make it independent of any configuration ressources. you can download the source here: http://www.espace.ch/viewstateProblem.rar you have to click very quickly (serveral times) in doing the postback for reproducing the bug in the sample page!!! for those guys who think the navigation behavior
Posted to
State Management
(Forum)
by
crystal.net
on 1/31/2006
Re: New Item added multiple times upon refresh
hey guys, that's a very interesting and good thread here. i translated mbanavige's code into C# more or less. it works great in asp.net 2.0 final. thanks a lot @ll developers who had the idea handling this postback/refresh problem! CustomBasePage.cs: using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public class CustomBasePage
Posted to
Getting Started
(Forum)
by
crystal.net
on 1/30/2006
Re: New Item added multiple times upon refresh
hey guys, that's a very interesting and good thread here. i translated mbanavige's code into C# more or less. it works great in asp.net 2.0 final. thanks a lot @ll developers who had the idea handling this postback/refresh problem! CustomBasePage.cs: using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public class CustomBasePage
Posted to
Getting Started
(Forum)
by
crystal.net
on 1/30/2006
Re: Validation of viewstate MAC failed / The state information is invalid for this page and might be corrupted
hey devMonky2k, thanks for your post. you haven't written it, but i'm very sure you also have the property DataKeyNames in your GridView in use.... and i had to laugh if i read about your EventValidation problem. i had the same problem and workaround, too :-) so i think it's evidence enough, microsoft supporters, we'd appreciate your help!!
Posted to
State Management
(Forum)
by
crystal.net
on 1/27/2006
Page 1 of 2 (20 items) 1
2
Next >
WindowsClient:
ASP.NET AJAX 4.0 Data Binding on MSDN Magazine
WindowsClient:
Don’t miss out..
TechNet Edge:
Improving Collaboration with SharePoint - Tech Focus December 2009 Part 1
Channel 9:
Channel 9 Live at PDC09: Scott Guthrie
Channel 10:
Get Discounted Concert Tickets at the New Windows Section 7
Channel 10:
Get Bing Wallpapers on the iPhone
Channel 10:
Bing Gets a New Toolbar
ASP.NET:
More on medium trust: what permission are you missing?
Channel 9:
Channel 9 Live at PDC09: Bob Muglia
WindowsClient:
Adventures With Windows Azure Diagnostics
Mix Online:
Adventures With Windows Azure Diagnostics
Channel 9:
Channel 9 Live at PDC09: Ray Ozzie
Channel 9:
Coding4Fun: DrinkTendr
Channel 9:
TWC9: Scott Hanselman, John Galloway, Bing, parallel unit tests, more
TechNet Edge:
ISA to TMG Migration Guidance
Channel 9:
Life at Microsoft: Episode 3
TechNet Edge:
Microsoft Windows Server 2008 to AITP
ASP.NET:
How important is medium trust to you?
WindowsClient:
Microsoft Web Platform & You
WindowsClient:
New Book: Developing for Microsoft Surface
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online