Home All Groups Group Topic Archive Search About

Validation of viewstate MAC failed.

Author
21 May 2009 3:55 PM
someone
Can anyone please help me with this problem. Thanks in advance.

This is a very simple site containing two pages listed below.

1. first.aspx
2. second.aspx

first.aspx contains only a textbox and a button.

second.aspx contains nothing, it is simply a blank page.

Whenever I click on the button to submit the textbox information from
first.aspx to second.aspx, the following error is displayed:

--------------------------
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.
-------------------------------


There's not much to it, but below is the code to first.aspx.

-------------------Begin Code----------------
<%@ Page Language="VB" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">

</script>

<html xmlns="http://www.w3.org/1999/xhtml">

<head runat="server">

<title></title>

</head>

<body>

<form id="form1" runat="server" action="second.aspx">


<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>

&nbsp;

<asp:Button ID="Button1" runat="server" Text="Button" />


</form>

</body>

</html>

-------------------End Code----------------



Although second.aspx is just a blank page, the code for that page is listed
below.

-------------------Begin Code----------------

<%@ Page Language="VB" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">

</script>

<html xmlns="http://www.w3.org/1999/xhtml">

<head runat="server">

<title></title>

</head>

<body>

<form id="form1" runat="server">

<div>


</div>

</form>

</body>

</html>

-------------------End Code----------------

Author
21 May 2009 4:51 PM
Bob Barrows
someone wrote:
> Can anyone please help me with this problem. Thanks in advance.
>
> This is a very simple site containing two pages listed below.
>
> 1. first.aspx
> 2. second.aspx
>
There was no way for you to know it (except maybe by browsing through
some of the previous questions before posting yours - always a
recommended practice),  but this is a classic (COM-based) asp newsgroup.
ASP.Net is a different technology from classic ASP. While you may be
lucky enough to find a dotnet-savvy person  here who can answer your
question, you can eliminate the luck factor by posting your question to
a newsgroup where the dotnet-savvy people hang out.  I suggest

microsoft.public.dotnet.framework.aspnet.

There are also forums at www.asp.net where you can find a lot of people
to help you.

HTH,
Bob Barrows
--
HTH,
Bob Barrows
Are all your drivers up to date? click for free checkup

Author
21 May 2009 5:30 PM
Michael
Okay, thanks.

Show quoteHide quote
"Bob Barrows" <reb01501@NOyahoo.SPAMcom> wrote in message
news:O6ugrRj2JHA.1424@TK2MSFTNGP02.phx.gbl...
> someone wrote:
>> Can anyone please help me with this problem. Thanks in advance.
>>
>> This is a very simple site containing two pages listed below.
>>
>> 1. first.aspx
>> 2. second.aspx
>>
> There was no way for you to know it (except maybe by browsing through
> some of the previous questions before posting yours - always a
> recommended practice),  but this is a classic (COM-based) asp newsgroup.
> ASP.Net is a different technology from classic ASP. While you may be
> lucky enough to find a dotnet-savvy person  here who can answer your
> question, you can eliminate the luck factor by posting your question to
> a newsgroup where the dotnet-savvy people hang out.  I suggest
>
> microsoft.public.dotnet.framework.aspnet.
>
> There are also forums at www.asp.net where you can find a lot of people
> to help you.
>
> HTH,
> Bob Barrows
> --
> HTH,
> Bob Barrows
>
>

Bookmark and Share