Microsoft
Software
Hardware
Network
Question : Validation of viewstate MAC failed? How I fix it?
I am getting an exception, but I dont know how to fix it, and why I am getting this error.
strMessage=
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.
__________________________
__________
_
strInnerException=
System.Web.UI.ViewStateExc
eption: Invalid viewstate.
Client IP: 89.130.13.104
Port: 4938
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; MRSPUTNIK 2, 3, 0, 104; MRA 5.6 (build 03402); .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
ViewState: /wEPDwUKMTA3MzA5OTI2OQ9kFg
JmD2QWAgID
D2QWCAIGD2
QWUAIBDw8W
Bh4EVGV4dA
UPSSBnb3Qg
YSBmZWVsaW
5nHgtOYXZp
Z2F0ZVVybA
VxLi4vbW9z
dHJhci5hc3
B4P2NhbmNp
b249b2ZfSV
9nb3RfYV9m
ZWVsaW5nX0
JsYWNrX0V5
ZWRfUGVhY2
UmZmVhdHVy
ZT1SZWxfND
FfVm9pc19T
dXJfVG9uX0
NoZW1pbl9M
ZXNfQ2hvcm
lzdGVzX2Fs
bDAeB1Zpc2
libGVnZGQC
Aw8PFgYfAA
UQQmxhY2sg
RXllZCBQZW
FjZR8BBScu
Li9hcnRpc3
RhLmFzcHg/
bm9tYnJlPU
JsYWNrIEV5
ZWQgUGVhY2
UfAmdkZAIF
Dw8WBh8ABS
5QaXJhdGVz
IG9mIHRoZS
BDYXJpYmJl
YW4gKFBpcm
F0YXMgRGVs
IENhcmliZS
ApHwEFfy4u
L21vc3RyYX
IuYXNweD9j
YW5jaW9uPW
tuX1BpcmF0
ZXNfb2ZfdG
hlX0Nhcmli
YmVhbl8oUG
lyYXRhc19E
ZWxfQ2FyaW
JlXykmZmVh
dHVyZT1SZW
xfNDFfVm9p
c19TdXJfVG
9uX0NoZW1p
bl9MZXNfQ2
hvcmlzdGVz
X2FsbDEfAm
dkZAIHDw8W
Bh8ABRJQaX
JhdGFzIERl
bCBDYXJpYm
UfAQUpLi4v
YXJ0aXN0YS
5hc3B4P25v
bWJyZT1QaX
JhdGFzIERl
bCBDYXJpYm
UfAmdkZAIJ
Dw8WBh8ABR
xCaWcgR2ly
bCAoWW91IE
FyZSBCZWF1
dG... ---> System.Web.HttpException: Unable to validate data.
at System.Web.Configuration.M
achineKeyS
ection.Get
DecodedDat
a(Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Int32& dataLength)
at System.Web.UI.ObjectStateF
ormatter.D
eserialize
(String inputString)
--- End of inner exception stack trace ---
__________________________
__________
_
strStackTrace=
at System.Web.UI.ViewStateExc
eption.Thr
owError(Ex
ception inner, String persistedState, String errorPageMessage, Boolean macValidationError)
at System.Web.UI.ViewStateExc
eption.Thr
owMacValid
ationError
(Exception
inner, String persistedState)
at System.Web.UI.ObjectStateF
ormatter.D
eserialize
(String inputString)
at System.Web.UI.ObjectStateF
ormatter.S
ystem.Web.
UI.IStateF
ormatter.D
eserialize
(String serializedState)
at System.Web.UI.Util.Deseria
lizeWithAs
sert(IStat
eFormatter
formatter, String serializedState)
at System.Web.UI.HiddenFieldP
ageStatePe
rsister.Lo
ad()
at System.Web.UI.Page.LoadPag
eStateFrom
Persistenc
eMedium()
at System.Web.UI.Page.LoadAll
State()
at System.Web.UI.Page.Process
RequestMai
n(Boolean includeStagesBeforeAsyncPo
int, Boolean includeStagesAfterAsyncPoi
nt)
at System.Web.UI.Page.Process
Request(Bo
olean includeStagesBeforeAsyncPo
int, Boolean includeStagesAfterAsyncPoi
nt)
at System.Web.UI.Page.Process
Request()
at System.Web.UI.Page.Process
RequestWit
hNoAssert(
HttpContex
t context)
at System.Web.UI.Page.Process
Request(Ht
tpContext context)
at ASP.mostrar_aspx.ProcessRe
quest(Http
Context context)
at System.Web.HttpApplication
.CallHandl
erExecutio
nStep.Syst
em.Web.Htt
pApplicati
on.IExecut
ionStep.Ex
ecute()
at System.Web.HttpApplication
.ExecuteSt
ep(IExecut
ionStep step, Boolean& completedSynchronously)
I already have the code this:
<system.web>
<pages enableViewStateMac="false"
/>
In my web.config. but it still happens.
Any help?
Answer : Validation of viewstate MAC failed? How I fix it?
This is the issue with the .net framework
To get the fix you will have to contact Microsoft at 800 936-5800 (select option 3) to open a case and request Fix number KB 361949
For details check
http://social.msdn.microso
ft.com/For
ums/en-US/
vstswebtes
t/
thread/0
f143e24-65
e7-4f44-8d
64-a8f920f
410af
Random Solutions
How to Disable all textboxes, command buttons, combo boxes etc.. on form:
Classic vbscript: at reboot, wait 10 minutes, check if (list of HostHeader sites) are running, if so, STOP
Time Calculation/Interval
record source for reports and forms gone
how can i make a rewrite rule to read links on the link bar, if there any???
Change div position when dropdown menu item is selected
Who should be the owner of a database.
Excel Due Date Over Due
Haven’t setup hint root zone file, but still can see internet records
Wireless access while on wired network