I have a login control and I tried to set the default button as the submit button within my form tag in the login page.
But, I am getting the following error.
Validation of viewstate MAC failed. If this application is hosted by a Web
Farm or cluster, ensure that
I already generated the machine key.
Any clue!
Scott LyslePosted Jan 28, 2009, 12:54 AM
Try setting the page EnableViewStateMac to false.
<%
@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebJunk._Default" EnableViewStateMac="false"%>