|
it
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Validation of viewstate MAC failed.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> <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---------------- someone wrote:
> Can anyone please help me with this problem. Thanks in advance. There was no way for you to know it (except maybe by browsing through> > This is a very simple site containing two pages listed below. > > 1. first.aspx > 2. second.aspx > 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 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 > >
Scripting.FileSystemObject GetFile method
Calling a javascript/jQuery from ASP.NET C#? Sharing session variables between applications Reading session variables from COM+ Passing Hidden Field Values To Other Forms CDONTS issue - Not Working after server migration blank frame in ie6/7 How to generate random no on Priority basis string encryption Too Many 401 errors in IIS Log when accessing WebResource.axd |
|||||||||||||||||||||||