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

Reklamlar

Eylül 5, 2012 Posted by | ASP.NET | , , , , | Yorum bırakın