New site getting Validation of viewstate MAC failed

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
1/28/2012 9:26:30 AM
Gravatar
Total Posts 9

New site getting Validation of viewstate MAC failed

 

Hi

I'm using mojoPortal 2.3.7.0 and created a Root site and a child site.  Everything on the root site works perfectly.  The child site loads and I can navigate through the pages, but if I try and save some content ( htmlcontent for example) I get the following error:

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.

[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) +11308238 System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +11308673 System.Web.UI.Util.DeserializeWithAssert(IStateFormatter formatter, String serializedState) +60 System.Web.UI.HiddenFieldPageStatePersister.Load() +11308951 System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +11387863 System.Web.UI.Page.LoadAllState() +56 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +11381890 System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +11381406 System.Web.UI.Page.ProcessRequest() +269 System.Web.UI.Page.ProcessRequest(HttpContext context) +167 ASP.htmledit_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\6d6071a6\36ca21fb\App_Web_ldakz2ph.1.cs:0 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +625 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +270

 

Not all actions in the sub site create this error.  For example, I can change the  site slogon, but I can't add a new Role administration group.  I can edit a page and add html content, but I cannot actually edit the content.

 I can disable the encryption in the web.config as follows and the error goes away, but so does my security...

viewStateEncryptionMode="Never"

 

this is a problem when I deploy to a local iis7.5 on my dev machine and my domain hosting account.

My dev machine is win7.

Thanks

Danny

 

 

 

1/28/2012 10:16:27 AM
Gravatar
Total Posts 18439

Re: New site getting Validation of viewstate MAC failed

Probably the result of the same problem on your other thread. You should not publish the pre-compiled deployment packages of mojoPortal using VS. The package from codeplex or from web app gallery is not source code it is pre-compiled deployment files that should not be re-published in VS as a web site.

Hope that helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.