Forums & Blog

A SmarterTools-sponsored community.
Welcome to Forums & Blog Sign in | Join | Help
in Search

Validation of viewstate MAC failed.

Last post 07-22-2008 3:24 PM by ST-DOhare. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 06-19-2008 10:42 AM

    Validation of viewstate MAC failed.

    We've had SmarterTicket deployed successfully for months now and, suddenly, when we try to login, the whole thing crashes (see error below). The errortalks about being in a web farm or cluster, which it is not - it is simply on a shared server. We made no changes to the software prior to this starting.

    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:

    The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

    1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

      <%@ Page Language="C#" Debug="true" %>

    or:

    2) Add the following section to the configuration file of your application:

    <configuration>
       <system.web>
           <compilation debug="true"/>
       </system.web>
    </configuration>

    Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

    Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.

    Stack Trace:

    [HttpException (0x80004005): Unable to validate data.]
    System.Web.Configuration.MachineKeySection.GetDecodedData(Byte[ buf, Byte[ modifier, Int32 start, Int32 length, Int32& dataLength) +294
    System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +203

    [ViewStateException: Invalid viewstate.
    Client IP: 68.200.121.84
    Port: 4786
    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14
    ViewState: /wEPDwUKLTY5MDU1NTkzMg8WBB4QX19fUmVzdWx0RmFpbHVyZWUeEF9fX1Jlc3VsdFN1Y2Nlc3NlFgJmD2QWAgIBD2QWBgIDDxYCHgRUZXh0BRVWZW5kb3IgQ2hlY2tzIFN1cHBvcnRkAgQPZBYCAgMPEGQQFQEMRW5nbGlzaCAoZW4pFQECZW4UKwMBZ2RkAgUPZBYGAgMPDxYCHgdWaXNpYmxlaGRkAgUPDxYCHwNoZGQCBw8PFgIfA2hkZBgBBR5fX0NvbnRyb2xzUmVxdWlyZVBvc3RCYWNrS2V5X18WAQUeY3RsMDAkTVBIJEN1c3RvbWVyTG9naW4xJGN0bDAyuePOmH0G5u6J+Dk5DzvEpEptW48=
    Referer: http://support.fadv-vendorcheck.com/Main/Default.aspx
    Path: /Main/Default.aspx]

    [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) +267
    System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +282
    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() +198
    System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +83
    System.Web.UI.Page.LoadAllState() +35
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +7350
    System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +213
    System.Web.UI.Page.ProcessRequest() +86
    System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +18
    System.Web.UI.Page.ProcessRequest(HttpContext context) +49
    ASP.main_default_aspx.ProcessRequest(HttpContext context) +4
    System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +358
    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64


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

     


  • 07-22-2008 3:24 PM In reply to

    Re: Validation of viewstate MAC failed.


    SmarterTicket uses ASP.net 1.1 framework. It appears you are using ASP.net 2.0

Page 1 of 1 (2 items)