Error: "Validation of viewstate MAC failed.."

Posted By Obaid Sat 17 Nov 2012
Add to Favorites0
Author Message
Obaid
 Posted Sat 17 Nov 2012
Supreme Being

Supreme Being - (21,922 reputation)Supreme Being - (21,922 reputation)Supreme Being - (21,922 reputation)Supreme Being - (21,922 reputation)Supreme Being - (21,922 reputation)Supreme Being - (21,922 reputation)Supreme Being - (21,922 reputation)Supreme Being - (21,922 reputation)Supreme Being - (21,922 reputation)

Group: Forum Members
Last Active: Sat 20 Jun 2015
Posts: 36, Visits: 118
I have installed Kartris using the platform installer.
I have changed the Application Pool to Framework 4.0.
I have added NetworkService Account with full access.

The error occurs after clicking  "Next" in "Step 3 - Connection String" (browser shows "http://localhost/Kartris/Admin/Install.aspx").
The server name was entered as "localhost\sqlexpress" and that database name is "kartris1".

Here is the error I get:
START======================

Server Error in '/Kartris' 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:

[ViewStateException: Invalid viewstate. 	Client IP: ::1	Port: 51738	Referer: http://localhost/Kartris/Admin/Install.aspx	Path: /Kartris/Admin/Install.aspx	User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20100101 Firefox/16.0	ViewState: TVoXrhxym8RSxqFSDFfT0IPYg3wpySGV2LgD1TadH19FbLWRZbv+TvKKBGwKW2lDnsNANl87cID+suK80e2iiK6zog26K2hYVmiHcyT2L+LtXSFEI+jjGWZVLCkk2JqrT9+FRfYfPC7K0A+yIRHjUq9gZ3MBqX+VzQOSQnkj6dzK3srfIoA9Oeqq93T7N3wek4KDu41YlaZhChhTmzStilYuYJF7uNpWDF/Uus9pQvSqAvv/apgUFWPCXco+M0GNSwWOCQ2T5T0GM8/FrTiqsUkTi1dTgSP5cWqEwV1/C+I2RaftMZHFmTGwuHT4IZ79Vpwfx6lLLqASh/55t3uREdlcBweXe+YKjCgDcXX8JiVO8FEfz7nPRbsLjyIPjYE40kJI+v8Bbk/fTWb+ruyvRnvVIfj/Pm9SHyHhs1hfxM3779PXHFPQkE+x1xmq+GZOtj2Xycf+M2xiGdprHtng9PG+l8GuY1rkZlA4n1DkYbJ03LK8Mf7GE2hbN2y67rQjkS23ZM0jjC8lskRlVKyR32eBtnDP4VK1HMSoGI66arV6HhIFG3jBqSHF+3JrZCPga404ia3dgD3rq5AuN/tmM5i+QbvAjrabZgGE0/OiaXu4yzLGyM/vHVarxPthPYxWHoyXcIIur/siYnsR3pKQNs+6MgfcoHTdroQwyyUX4r0WkAPdzhHQuivsOjQ9EJMKICNlS0J1jjRIoG2Vo6BsnQmwz2vda+tVBG2FxzNUm6kRCp2zBsOzj4Qjk/BiHYDNh7hbIBuJigVDZ+PnRbydfm03YEJdzA...][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.ThrowMacValidationError(Exception inner, String persistedState) +12436256   System.Web.UI.ObjectStateFormatter.Deserialize(String inputString, Purpose purpose) +12327715   System.Web.UI.Util.DeserializeWithAssert(IStateFormatter2 formatter, String serializedState, Purpose purpose) +67   System.Web.UI.HiddenFieldPageStatePersister.Load() +12327927   System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +12580515   System.Web.UI.Page.LoadAllState() +51   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +12573463   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +12572973   System.Web.UI.Page.ProcessRequest() +119   System.Web.UI.Page.ProcessRequest(HttpContext context) +99   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +913   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +165
END=================

Does anyone know what is going on here? The solution online require editing web.config but I suspect I do not have to do this and I am doing something wrong! Thanks.


Similar Topics

Expand / Collapse

Reading This Topic

Expand / Collapse

Back To Top