Fresh install, getting Validation of viewstate MAC

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

3/27/2018 2:28:36 PM
Gravatar
Total Posts 2

Fresh install, getting Validation of viewstate MAC

Do you have any suggestions on what I check to fix this? I'm using IIS8.5, SQL Express 2017, Windows Server 2016. I can get to the login page but get this error  after logging in from the server. If I login from another pc, I can get a into the settings.  I installed this into C:\mojoportal, i'm not using inetpub\wwwroot

some other strange occurances, not sure if they are related

there are no graphics being displayed, for example the administration page just has text, no icons like the demo site

the zip I downloaded did not have an App_Data, so I manually created it and added the permissions, is it possible I am missing other folders? 

 

 

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.

See http://go.microsoft.com/fwlink/?LinkID=314055 for more information. 
  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.

See http://go.microsoft.com/fwlink/?LinkID=314055 for more information.

Source Error: 

[No relevant source lines]
  

 Source File:  c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\1b3cf092\64619ea4\App_Web_55fwyr1o.9.cs    Line:  0 

Stack Trace: 

[ViewStateException: Invalid viewstate. 
    Client IP: 10.5.0.X
    Port: 56312
    Referer: http://intranet.domain.local/Secure/Login.aspx?returnurl=%2f
    Path: /Default.aspx
    User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko
    ViewState: 7HNRful+5K3XHA4VLg1QJZOU/N0weHIsgY3947obiN58jSQC6YVeB+cBf5/w/89mCQyX4V6f+I3Tr8Y09SgxkCoAD0SOmYL36z1MOD0bB0PdilVooIuOuWf0Kirkc+rpciEKPCdnlJ4+3CnUBY0lSZ5JEyMfJvzVh5X0p9a8XiMTZNyz68mC/EgjscdO+lfoMOPxZKXoLrAk2cz7NQqHhwrI0QA+KatqS03yzjj49XOmeK4hpR0ld3ge6SgdxuucaZR+nbBwpDdzSaQrjiaRsEo6J5MCTNBMdcE1TFYRTEMdC2i0jyztkIeRVfOyKJwL2M3lkfBePmHxKn30mAX8RHuT1H4zF85WvIACJtwbjWxFXstmbzZ9Bvjqo0v9N0sSw/3TNOGzJEPmIZJX33dJaJhHwMbDOh3BtFMCik4cWLSg85dgVrosk6dWrOngNglfnma6/8Q+nWu3kjdkXT8Kz8YUKnsUtbSTTbeIQqah9NJ6gPK1d5YXIdL/KDG2To7K5DIHA6/4m7afRs84jqDmj8+2nAooicKBWCFyHUHdB3c/zxI2FHYU3zouiGyHH6TZijnQd3j1VC1nAl0oYnjJnv1GVPxug9kskud7kPrujCAhK9dq2gKAPWxE8QCUAZcAuGmbikYH3Pg/VRQ9H0aTBEH6JGTErSF4PWIkQVK/Mr4tZI06w66NGo+zk528XHNvky2Lji36FYORAcp+oam/mLXPHf+T4jtmuLJA6JYqwHAxBXtwTSk36EseMsZhyOCssjpTcte3EqlYk18NOr8++jq07...]

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

See http://go.microsoft.com/fwlink/?LinkID=314055 for more information.]
   System.Web.UI.ViewStateException.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidationError) +153
   System.Web.UI.ObjectStateFormatter.Deserialize(String inputString, Purpose purpose) +724
   System.Web.UI.Util.DeserializeWithAssert(IStateFormatter2 formatter, String serializedState, Purpose purpose) +61
   System.Web.UI.HiddenFieldPageStatePersister.Load() +315
   System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +367
   System.Web.UI.Page.LoadAllState() +46
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +8638
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +355
   System.Web.UI.Page.ProcessRequest() +75
   System.Web.UI.Page.ProcessRequest(HttpContext context) +70
   ASP.default_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\1b3cf092\64619ea4\App_Web_55fwyr1o.9.cs:0
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +502
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +197
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +88
 
 

3/27/2018 7:07:59 PM
Gravatar
Total Posts 2

Re: Fresh install, getting Validation of viewstate MAC

Just wanted to add that I did generate a machine key from IIS and check that it was in web.config

 

also

Security Advisor

This page helps find common configuration issues that affect the security of your site.

Verify that a custom machine key is being used OK