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 LysleRank #49 · 31K reputationPosted Jan 27, 2009, 7:54 PM EST
Try setting the page EnableViewStateMac to false.
<%
@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebJunk._Default" EnableViewStateMac="false"%>