When moving a fiddler based web test to a remote machine a Viewstate Mac error was received.
This was caused because the viewstate is encoded using a MachineKey which is unique to the machine that the request was formulated on. So when the viewstate is read by the remote machine this throws an error.
This can be overcome by adding a hardcoded machineKey to the web.config file as detailed in the following article.
Leave a Reply