technomark.in
Hot News

$(this) Selector And Children / Find In jQuery

Detect An Undefined Object Property In JavaScript

Rotate And Save Video Using VLC Media Player

Capitalize The First Letter Of String In JavaScript

Convert Any Files To Any Format Using VLC Media Player

Asp.Net AngularJS WCF IIS
DataBase Jquery Bikes Random
HomeContact Us Watch Our YouTube Channel ..........Blog Spot..........

Technomark.in

How To Logout From All Devices In Skype

Technomark.in

How To Embed Google Map In Your Code

Technomark.in

How To Install IIS (Internet Information Services) On Windows

Technomark.in

Enable Directory Browsing In IIS

View All


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


When you get this Error?

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.

Two things to consider here.
1. ViewState
2. Message Authentication Code (MAC)

1. What is ViewState

> When postback happens on webpages, the information of the
> webpage will be stored on the ViewState.
> After postback, the page controls would get the data from the ViewState.

2. What is Message Authentication Code (MAC)

> When doing the page redirection or postback, there is a possibility that
> the data in the ViewState can be tampered.
> Can be called as HACKED ...!!!!!! ...
> In oreder to protect this tampering, the Viewstate data
> is protected by Message Authentication Code (MAC).
> This Error mainly occurs When the MAC validation for the Viewstate fails.
> When there is not provided any machine key on the web.config of each IIS application then
> Asp.Net automatically generate cryptographic key for each application and
> stores the key in the HKCU registry.
> When mismatch happens between the applications on the auto generated key, this error happens.


How To Resolve this Issue

> On the web.config of your asp.net application, add the following code for machine key.

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.

> For Creating the machine Key, Please follow this link. How To Generate Machine Key On IIS
> For Video of Generating Machine Key : Youtube - How To Generate Machine Key On IIS
> This would definitely resolve the issue.

Watch Video of this Content on Video Streaming

Post Your Comment

Name *


Email *


Comment * Please provide all three fields for posting Comment




Comments

Eajajul Sk:
go microsoft.com/fwlink/? linKID=314055

Technomark.in

Book Train Tickets on IRCTC Quickly During Tatkal Period

Technomark.in

Before You Copy Any Image From Internet

View All

Privacy StatementDisclaimerSitemap