Koray Kırdinli

Yazılım ve İş Yaşamı Hakkında Paylaşımlar

Validation of viewstate MAC failed hatasının çözümü

Merhabalar, asp.net de bir sayfadan diğerine bir data post etmeyee çalışırken aşağıdaki hata ile karşılaşırsanız çözümü çok basit. Data post ettiğiniz sayfanın sayfa direktiflerine enableViewStateMac=”false” ekliyorsunuz.

<%@ Page Language=”C#” AutoEventWireup=”true”  enableViewStateMac=”false”  CodeBehind=”Success.aspx.cs” Inherits=”KT_Virtual_POS_App.Success” %>

 

Server Error in ‘/’ Application.


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.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: 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.

 

<form id=”form1″ action=”Success.aspx” method=”post” runat=”server”>

September 5, 2012 - Posted by | ASP.NET | , , , ,

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s