TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Amol
NA
208
193.6k
Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure t...
May 16 2012 12:55 PM
see the design code given below
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="testpage.aspx.vb" Inherits="testpage"
EnableViewStateMac="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
<script type="text/javascript">
function callme(frmname)
{
var myForm = document.forms[frmname];
myForm.submit();
}
</script>
</head>
<body>
<form id="frm1" method="post" style='margin-top: 0px; margin-bottom: -10px' runat="server"
action="Default.aspx">
<div id="button2" style="float: left;" önclick="callme('frm1');">
<a style="removed: pointer" class="smallfnt3">Register Now</a>
</div>
</form>
</body>
</html>
it shows error as
Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.
Please Help.
Reply
Answers (
1
)
Session
Already Exist