4 thoughts on “Validation of Viewstate MAC Failed”

    1. Raju,

      First it is assumed that you are using MySQL with ASP.NET and Visual Studio. You can certainly do this, but you may want to consider using MS SQL Express, a free version of MS SQL from Microsoft. It has the full feature suite of MS SQL, except it imposes a 4 gig database size restriction, a limit you’ll probably never reach unless you have a very large database or you are storing serialized data such as images. MS SQL and Express are recommended to use with a .NET services architecture over MySQL. Here’s a quick article on MS SQL vs. MySQL.

      If you do choose to use MySQL, the solution is very similar. View your MySQL database with a database management program such as phpMyAdmin and follow the instructions in my article. Other than this, the solution should be identical.

  1. I have a very simple one page (Contact Us) web application. I do not use use Membership, Roles, or Profile Providers. I get the “Validation of Viewstate MAC failed” exception when the user submits the form.

    Tools: VS 2008, ASP.NET 3.5
    I use validation controls on the form.
    Works on my development system.
    I get the exception when running the form on the client’s web site which is not hosted in a “web farm” nor “cluster”.

    Any ideas?

Leave a Reply to admin Cancel Reply

Your email address will not be published. Required fields are marked *

Scroll to Top