Basic JavaScript Question:
Download Questions PDF

You have an ASP. NET web application running on a web-farm that does not use sticky sessions - so the requests for a session are not guaranteed to be served the same machine. Occasionally, the users get error message Validation of view state MAC failed. What could be one reason that is causing this error?


The most common reason for this error is that the the machine key value in machine.config is different for each server. As a result, view state encoded by one machine cannot be decoded by another. To rectify this, edit the machine.config file on each server in the web-farm to have the same value for machine key.

Download JavaScript Interview Questions And Answers PDF

Previous QuestionNext Question
What does the term sticky session mean in a web-farm scenario? Why would you use a sticky session? What is the potential disadvantage of using a sticky session?To set all checkboxes to true using JavaScript?