I have created a script for application server by using my machine and now i want to run this script on other machine, but when i am running this script, i’m getting following error:
Validation of viewstate MAC failed. If this application is hosted by a
Web Farm or cluster, ensure that configuration specifies
the same validationKey and validation algorithm. AutoGenerate cannot
be used in a cluster.
How can i use this script or should i create another script on that machine?
Thanks.
Are you trying to test ASP.NET app?
If yes then suppose you are incorrectly handling VIEWSTATE in your test: you need to correlate the VIEWSTATE in your request so that you’re sending the correct value back to the server.
Record and replay approach will not work here: if you’re just trying to use the value recorded in the script then you’re likely to run into problems. What you need to do is get the value of VIEWSTATE from the previous response from the server, strip it out, encode it and then send it back.
I can look into for number of links and how-tos: https://stackoverflow.com/a/10650186/993246.