Script created on one machine and run on another machine

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.

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

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.


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x