Results 1 to 5 of 5

Thread: Error: Validation of viewstate MAC failed

  1. #1
    Join Date
    Jun 2006
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Error: Validation of viewstate MAC failed

    I'm getting this error on my ASP.Net application when it is hosted on Redfox...

    Code:
    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.


    The error occurs when I click a button on the page before the page has fully loaded. The button causes a postback, but I guess the viewstate hasn't completed downloaded, and hence isn't being sent back complete.

    Am I correct in thinking this is a problem with my application, and not the hosting settings as the error message infers.

    What can i do about it?

    Thanks

  2. #2
    Join Date
    Oct 2005
    Location
    Scotland
    Posts
    229
    Thanks
    7
    Thanked 12 Times in 8 Posts

    Default

    I've also been getting these errors, I take it you're also using V2 of the framework?

  3. #3
    Join Date
    Oct 2005
    Location
    Scotland
    Posts
    229
    Thanks
    7
    Thanked 12 Times in 8 Posts

    Default

    Just did a quick google search on the error there's some info and a potential workaround on this blog http://aspadvice.com/blogs/joteke/ar.../02/15011.aspx

  4. #4
    Join Date
    Jun 2006
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for the reply. This did fix the issue, but of course drops the security.

  5. #5
    Join Date
    Feb 2004
    Posts
    4,903
    Thanks
    2
    Thanked 134 Times in 113 Posts

    Default

    Its a .NET issue though, nothing that can be done until they fix it.
    Warren Ashcroft
    Red Fox UK Limited - Pioneers in Internet Technology
    http://www.redfoxuk.com
    w.ashcroft [at] redfoxuk.com

    NOTE: Forum Private Messaging should not be used to contact staff with support queries.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 12
    Last Post: 7th June 2006, 09:46 PM
  2. PHP: Image validation/anti leech
    By E_G in forum Code Sharing
    Replies: 0
    Last Post: 14th March 2006, 03:29 PM
  3. Replies: 16
    Last Post: 2nd December 2005, 04:09 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •