exception Madrid, Spain
  • 13 years ago


    iam developing an application

    and in user controls iam using grid views with datakeyname parameters

    iam not using any web farmers.

    but iam getting an exception: 



    Validation of viewstate MAC failed.If this application is hosted bya Web Farmer or cluster,ensure that <machineKey> configuration specifies the same validationKey and validation algorithm.Autogenerate cannot be used in a cluster

  • 13 years ago

    hi raj,

     Try this

    set true to EnableViewStateMac in page directive

    <%@page EnableViewStateMac =true %>

    My blog

Post a reply

Enter your message below

Sign in or Join us (it's free).


Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Programs must be written for people to read, and only incidentally for machines to execute.”