Asp.net exception

asp.net Madrid, Spain
  • 9 years ago

    Hai

    iam developing an asp.net 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

  • 9 years ago

    hi raj,

     Try this

    set true to EnableViewStateMac in page directive

    <%@page EnableViewStateMac =true %>

    My blog

    http://dflorence25.blogspot.com

Post a reply

Enter your message below

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

Contribute

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.

“Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.” - Brian Kernighan