Error 'Validation of viewstate MAC failed' in ASP.Net

Satishkr
 
on Jul 06, 2016 04:07 AM
4564 Views

 

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.

http://go.microsoft.com/fwlink/?LinkID=314055

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.

http://go.microsoft.com/fwlink/?LinkID=314055

Source Error: 


[No relevant source lines]

Source File: App_Web_qmc1qrzg.14.cs    Line: 0 

Stack Trace: 


[ViewStateException: Invalid viewstate. 
	Client IP: 117.242.170.110
	Port: 47954
	User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
	ViewState: /wEPDwUKLTYxNjEyNTk5Mw9kFgJmD2QWAgIBD2QWBAIBDw8WAh4HVmlzaWJsZWhkFgICAQ8QDxYEHg1EYXRhVGV4dEZpZWxkBQpFbXBsb3llZUlkHgtfIURhdGFCb3VuZGdkEBUCJS0tLS0tLS0tLS1TZWxlY3QgRW1wbG95ZWVJRC0tLS0tLS0tLS0EMTAwMBUCJS0tLS0tLS0tLS1TZWxlY3QgRW1wbG95ZWVJRC0tLS0tLS0tLS0EMTAwMBQrAwJnZxYBAgFkAgMPDxYCHwBnZBY+AgMPDxYCHghJbWFnZVVybAUcL0ltYWdlX1VwbG9hZC8xMDAwVHVsaXBzLmpwZ2RkAgUPDxYCHgRUZXh0BQQxMDAwZGQCBw8PFgIfBAUJNDU1NTU1NTU1ZGQCCQ8PFgIfBAUMU2F0aXNoIEt1bWFyZGQCCw8PFgIfBAUDU0JJZGQCDQ8PFgIfBAUPTUVDSEFOSUNBTCBFTkdHZGQCDw8PFgIfBAUDSlNSZGQCEQ8PFgIfBAUFQURNSU5kZAITDw8WAh8EBQg0NTU1NTU1NWRkAhUPDxYCHwQFCzIwL0p1bC8yMDE2ZGQCFw8PFgIfBAUHNDU1NTU1NWRkAhkPDxYCHwQFCzMwL0p1bi8yMDE2ZGQCGw8PFgIfBAUINDU1NTU1NTVkZAIdDw8WAh8EBQJBK2RkAh8PDxYCHwQFCDQ1NTU1NTU1ZGQCIQ8PFgIfBAUDSlNSZGQCIw8PFgIfBAUHTWFycmllZGRkAiUPDxYCHwQFCjU2NjY2NjY2NjZkZAInDw8WAh8EBQNHRU5kZAIpDw8WAh8EBQ1zYXRAZ21haWwuY29tZGQ...]

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

http://go.microsoft.com/fwlink/?LinkID=314055]
   System.Web.UI.ViewStateException.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidationError) +153
   System.Web.UI.ViewStateException.ThrowMacValidationError(Exception inner, String persistedState) +14
   System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +237
   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() +199
   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.verifyemployeedetails_aspx.ProcessRequest(HttpContext context) in App_Web_qmc1qrzg.14.cs:0
   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.5485; ASP.NET Version:2.0.50727.5491

 

Download FREE API for Word, Excel and PDF in ASP.Net: Download