ASP.NET 2.0 Machine Key

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

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

A Website.

Up ↑

%d bloggers like this: