« August 2007 | Main | December 2007 »

November 2007 Archives

November 23, 2007

ViewState MAC Validation errors in TMEditor

ViewState MAC Validation errors in TMEditor

If you've used TMEditor on Windows 2003 you may have experienced the following error when using TMEditor:

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.

There are several reasons why this may happen; however there is a general way around this problem which is to disable ViewState MAC validation. To do this edit the TMEditor's web.config file and add the following as a child of the system.web section:

<pages enableEventValidation="false" viewStateEncryptionMode="Never" enableViewStateMac="false" />

However please note that this may allow attacks on the application or IIS on a public-facing server; however if you've got TMEditor sitting unprotected on an internet connection then you're already in trouble :-).

The following references provide more information:

About November 2007

This page contains all entries posted to On Topic in November 2007. They are listed from oldest to newest.

August 2007 is the previous archive.

December 2007 is the next archive.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type 3.32