I get hundreds of these errors in my eventlog every day. I did some searching and it seems to be very common with no resolution.
Here is a very good post about it, although it says upgrading to .NET 3.5 SP 1 should resolve it, which it does not. It says:
1. You aren't using a web farm. (
true)
2. It appears when using built-in databound controls such as GridView, DetailsView or FormView which utilize “DataKeyNames”. (
false - on the login page in this error below)
3. It appears if you have a large page which loads slowly for any reason. (
true on some pages)
If you look at the solutions offered in that post, Option 1 is not an option for a public site - Option 2 and 3 sound interesting but would require a core change - has anyone experienced this problem or tried something like this?
I also found this article on Microsoft about it - it says "
Note If you set the value of the
aspnet:IgnoreFormActionAttribute key to "false" in the web.config file, ASP.NET will honor the "action" attribute of the form." - what are the implications of this?
AssemblyVersion: 5.2.2
PortalID: 6
PortalName: PokerDIY
UserID: -1
UserName:
ActiveTabID: 636
ActiveTabName: Login
RawURL: /login.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://www.pokerdiy.com/login.aspx
UserAgent: Mozilla/1.22 (compatible; MSIE 2.0d; Windows NT)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: ea7c4753-5922-44ce-82b5-0f2fd4c70912
InnerException: Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Web.Configuration.MachineKeySection.GetDecodedData
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster. ---> System.Web.HttpException: Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster. ---> System.Web.UI.ViewStateException: Invalid viewstate. Client IP: 188.92.72.168 Port: 1738 User-Agent: Mozilla/1.22 (compatible; MSIE 2.0d; Windows NT) ViewState: /wEPDwUKMTYwNjM1MDk3Mg9kFgZmDxYCHgRUZXh0BYABDQoJCTwhRE9DVFlQRSBodG1sIFBVQkxJQyAiLS8vVzNDLy9EVEQgWEhUTUwgMS4wIFRyYW5zaXRpb25hbC8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9UUi94aHRtbDEvRFREL3hodG1sMS10cmFuc2l0aW9uYWwuZHRkIj4NCglkAgEPZBYOAgQPFgIeB1Zpc2libGVoZAIFDxYCHgdjb250ZW50BRFMb2dpbiB0byBQb2tlckRJWWQCBg8WAh8CBQVMb2dpbmQCBw8WAh8CBR5Db3B5cmlnaHQgKGMpIDIwMTAgYnkgUG9rZXJESVlkAggPFgQfAmQfAWhkAgkPFgIfAgUIUG9rZXJESVlkAgwPFgIfAgUNSU5ERVgsIEZPTExPV2QC Referer: http://www.pokerdiy.com/login.aspx Path: /Default.aspx ---> 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) --- End of inner exception stack trace --- --- End of inner exception stack trace --- at System.Web.UI.ViewStateException.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidationError) at System.Web.UI.ViewStateException.ThrowMacValidationError(Exception inner, String persistedState) at System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) at System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter.Deserialize(String serializedState) at System.Web.UI.Util.DeserializeWithAssert(IStateFormatter formatter, String serializedState) at System.Web.UI.HiddenFieldPageStatePersister.Load() at System.Web.UI.Page.LoadPageStateFromPersistenceMedium() at System.Web.UI.Page.LoadAllState() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
Source:
Server Name: AS45R95