This will be a problem when you host multiple servers. Because machine keys are different.
IF your project is running on the same machine. EnableViewStateMAC = true is safe.
Using enableViewStateMac requires consecutive requests to be sent to the same server (for example, affinity for the server). This function is used to prevent unauthorized access to the page view state; however, it does this based on an automatically generated verification key on the current server. A message authentication code (MAC) is generated from this key and sent to ViewState back to the browser. The problem is that if POST feedback is performed and goes to another server, you will receive a message with a small message "Corrupt View State".
To fix this, you can either set enableViewStateMac to false, or specify the general value of the validationKey attribute in the element on all servers (in the farm).
By the way, the documentation says that it is disabled by default. This is not true! Go check out machine.config!
halit source share