This is a migrated thread and some comments may be shown as answers.

Server time-out after waiting to long to Post the form

1 Answer 68 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Joeri
Top achievements
Rank 2
Joeri asked on 10 Jan 2009, 10:59 AM
If I'm on a page and using the RADeditor and writing a text which takes me longer than let's say 6 minutes, and I then try to post the Form, I get following error.

Can anyone help me out?


 

Server Error in '/' Application.

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.

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: 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.

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.MachineKeySection.GetDecodedData(Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Int32& dataLength) +289
   System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +140

[ViewStateException: Invalid viewstate. 
	Client IP: 78.20.176.47
	Port: 53967
	User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; InfoPath.2; .NET CLR 3.5.21022)
	ViewState: /wEPDwUKLTYyMTI1NjE2Mw9kFgJmD2QWAmYPZBYCAgMPZBYEAgkPD2QWAh4Jb25rZXlkb3duBbEBaWYoZXZlbnQud2hpY2ggfHwgZXZlbnQua2V5Q29kZSl7aWYgKChldmVudC53aGljaCA9PSAxMykgfHwgKGV2ZW50LmtleUNvZGUgPT0gMTMpKSB7ZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoJ2N0bDAwX2N0bDAwX2J0blNlYXJjaCcpLmNsaWNrKCk7cmV0dXJuIGZhbHNlO319IGVsc2Uge3JldHVybiB0cnVlfTsgZAIRD2QWAgIBD2QWAgIDDzwrAAoBAA8WBB4LXyFEYXRhQm91bmRnHgtfIUl0ZW1Db3VudAIBZBYCZg9kFgZmDw8WAh4HVmlzaWJsZWhkZAIBD2QWAmYPZBYCAhUPPCsAFgQADxYEHgdDb250ZW50BeQCPGgyPkhpc3RvcmllayB2YW4gaGV0IFN0ZXVucHVudDwvaDI+DQo8cD5IZXQgU3RldW5wdW50IE9uZGVybmVtZW4gZW4gSW50ZXJuYXRpb25hYWwgT25kZXJuZW1lbiBpcyBkZSB2b29ydHpldHRpbmcgdmFuIFNUT09JLCBTdGV1bnB1bnQgdm9vciBPbmRlcm5lbWVyc2NoYXAsIE9uZGVybmVtaW5nZW4gZW4gSW5ub3ZhdGllIGRhdCBhY3RpZWYgd2FzIHZhbiAyMDAxIHRvdCAyMDA2LiBBbGxlIHN0dWRpZXMsIHdvcmtpbmcgcGFwZXJzIGVuIGJvZWtlbiBkaWUgdGlqZGVucyB...]

[HttpException (0x80004005): 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.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidationError) +106
   System.Web.UI.ViewStateException.ThrowMacValidationError(Exception inner, String persistedState) +14
   System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +242
   System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter.Deserialize(String serializedState) +4
   System.Web.UI.Util.DeserializeWithAssert(IStateFormatter formatter, String serializedState) +37
   System.Web.UI.HiddenFieldPageStatePersister.Load() +207
   System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +105
   System.Web.UI.Page.LoadAllState() +43
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6785
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +242
   System.Web.UI.Page.ProcessRequest() +80
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
   System.Web.UI.Page.ProcessRequest(HttpContext context) +49
   ASP.content_aspx.ProcessRequest(HttpContext context) +4
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75


Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053

1 Answer, 1 is accepted

Sort by
0
Nikolay Raykov
Telerik team
answered on 13 Jan 2009, 12:36 PM
Hello Joeri,

I did some research on this exception and it appears that it is related to ASP.NET controls which utilize DataKeyNames property. Here you could find more information about this exception:

http://aspadvice.com/blogs/joteke/archive/2006/02/02/15011.aspx
http://forums.asp.net/p/955145/1173230.aspx#1173230

Do you have a GridView or some related control on the page that utilizes DataKeyNames? If so, it is possibly causing the problem.

If your scenario is different, could you please open a support ticket and send us a sample working version of your project?

Greetings,
Nikolay Raykov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Editor
Asked by
Joeri
Top achievements
Rank 2
Answers by
Nikolay Raykov
Telerik team
Share this question
or