Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How solve (Validation of viewstate MAC failed)?

How solve (Validation of viewstate MAC failed)?

Scheduled Pinned Locked Moved ASP.NET
questioncomalgorithmshelpannouncement
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jassim Rahma
    wrote on last edited by
    #1

    Hi, I keep getting the following error for different page in my website but not all the times so same page might work now but it will give this error after few minutes then again it will work. How can I solve it? This is the 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.

    Technology News @ www.JassimRahma.com

    A V 2 Replies Last reply
    0
    • J Jassim Rahma

      Hi, I keep getting the following error for different page in my website but not all the times so same page might work now but it will give this error after few minutes then again it will work. How can I solve it? This is the 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.

      Technology News @ www.JassimRahma.com

      A Offline
      A Offline
      AContractor
      wrote on last edited by
      #2

      This error usually happens when your web app runs on a web farm but the machineKey isn't the same across all servers. Is this an issue in production? Check out this article on MSDN for more info. http://msdn.microsoft.com/en-us/library/ms998288.aspx[^]

      1 Reply Last reply
      0
      • J Jassim Rahma

        Hi, I keep getting the following error for different page in my website but not all the times so same page might work now but it will give this error after few minutes then again it will work. How can I solve it? This is the 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.

        Technology News @ www.JassimRahma.com

        V Offline
        V Offline
        Vani Kulkarni
        wrote on last edited by
        #3

        Try adding machinekey in webconfig. See following link for more details: Validation of viewstate MAC failed.[^] http://forums.asp.net/t/1847207.aspx/1[^] http://stackoverflow.com/questions/4693369/validation-of-viewstate-mac-failed-when-on-page-for-20-minutes[^]

        Thanks & Regards, Vani Kulkarni

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups