Click here to Skip to main content
12,447,778 members (60,021 online)
   

ASP.NET

 
AnswerRe: Auto refresh without timer Pin
PiyushBha7-Feb-13 19:33
memberPiyushBha7-Feb-13 19:33 
AnswerRe: Auto refresh without timer Pin
StyleTech Solutions Ltd9-Feb-13 3:10
groupStyleTech Solutions Ltd9-Feb-13 3:10 
AnswerRe: Auto refresh without timer Pin
Avik Ghosh2211-Feb-13 23:49
memberAvik Ghosh2211-Feb-13 23:49 
Questionconnect the e-signature pad with crystal report and get sign Pin
premaa_36@yahoo.co.in6-Feb-13 22:58
memberpremaa_36@yahoo.co.in6-Feb-13 22:58 
QuestionEmail validation against database Pin
sonal12346-Feb-13 18:18
membersonal12346-Feb-13 18:18 
AnswerRe: Email validation against database Pin
Rahul Rajat Singh6-Feb-13 21:59
mvpRahul Rajat Singh6-Feb-13 21:59 
AnswerRe: Email validation against database Pin
Ankur\m/7-Feb-13 1:50
memberAnkur\m/7-Feb-13 1:50 
QuestionValidation of viewstate MAC failed for ASP.NET 4.0 application Pin
Member 98165276-Feb-13 11:24
memberMember 98165276-Feb-13 11:24 
Hi,
 
I am getting the below error in my ASP.NET 4.0 web 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.
 
I started getting this error when I added the below tag in web.config to encrypt the viewstate:
 
<pages enableEventValidation="true" controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID" enableViewStateMac="true" viewStateEncryptionMode="Always"/>
<machineKey validationKey="9EFA2D2E71A1BC8ECAF76E2377F29E61AB0214D893EBDBBD49C594A94FB0A2336BA3023F1578BFFE7ACD09C56872885537D07F5FA8FFF0FE4CD8B0E955A02845" decryptionKey="3EBF84F260F8883A69379502DF6DC999ADCAAA90885EAB1BD0423CEED13526A4" validation="SHA1" decryption="AES"/>
 
I looked for lot of solutions on aspnet forums and Internet but nothing worked. If I change the viewStateEncryptionMode to "Auto" or "Never", then the page loads fine. But that would make my application insecure and security is my prime objective.
 
FYI:My application is deployed on a Windows 2008 R2 server and not on a webfarm.
 
Any solution to solve this issue?

AnswerRe: Validation of viewstate MAC failed for ASP.NET 4.0 application Pin
Keith Barrow6-Feb-13 12:33
mentorKeith Barrow6-Feb-13 12:33 
AnswerRe: Validation of viewstate MAC failed for ASP.NET 4.0 application Pin
karthickpradhaban11-Feb-13 4:46
memberkarthickpradhaban11-Feb-13 4:46 
GeneralRe: Validation of viewstate MAC failed for ASP.NET 4.0 application Pin
smehta.er12-Feb-13 6:28
membersmehta.er12-Feb-13 6:28 
GeneralRe: Validation of viewstate MAC failed for ASP.NET 4.0 application Pin
karthickpradhaban13-Feb-13 5:24
memberkarthickpradhaban13-Feb-13 5:24 
GeneralRe: Validation of viewstate MAC failed for ASP.NET 4.0 application Pin
smehta.er13-Feb-13 5:44
membersmehta.er13-Feb-13 5:44 
GeneralRe: Validation of viewstate MAC failed for ASP.NET 4.0 application Pin
karthickpradhaban13-Feb-13 5:45
memberkarthickpradhaban13-Feb-13 5:45 
GeneralRe: Validation of viewstate MAC failed for ASP.NET 4.0 application Pin
smehta.er14-Feb-13 7:10
membersmehta.er14-Feb-13 7:10 
GeneralRe: Validation of viewstate MAC failed for ASP.NET 4.0 application Pin
karthickpradhaban7-Mar-13 5:27
memberkarthickpradhaban7-Mar-13 5:27 
QuestionDynamic width DIV next to a static width DIV Pin
jojoba20116-Feb-13 0:31
memberjojoba20116-Feb-13 0:31 
AnswerRe: Dynamic width DIV next to a static width DIV Pin
Keith Barrow6-Feb-13 12:54
mentorKeith Barrow6-Feb-13 12:54 
QuestionRe: Dynamic width DIV next to a static width DIV Pin
jojoba20116-Feb-13 18:05
memberjojoba20116-Feb-13 18:05 
AnswerRe: Dynamic width DIV next to a static width DIV Pin
Richard Deeming7-Feb-13 1:51
memberRichard Deeming7-Feb-13 1:51 
QuestionRe: Dynamic width DIV next to a static width DIV Pin
jojoba201113-Feb-13 22:29
memberjojoba201113-Feb-13 22:29 
QuestionMaster page Elements Id Pin
mohammadkaab5-Feb-13 23:06
membermohammadkaab5-Feb-13 23:06 
AnswerRe: Master page Elements Id Pin
deflinek6-Feb-13 2:54
memberdeflinek6-Feb-13 2:54 
QuestionCrystal Report not showing Pin
Kashinath Patil5-Feb-13 22:14
memberKashinath Patil5-Feb-13 22:14 
AnswerRe: Crystal Report not showing Pin
karthickpradhaban11-Feb-13 4:50
memberkarthickpradhaban11-Feb-13 4:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web01 | 2.8.160811.3 | Last Updated 25 Aug 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid