Nach Abmelden beidem Versuch wieder Anmelden: Fehlermeldung , Anmelden nicht möglich
Nach erfolgreichem Anmelden mit einem anderen Browser,
unter Aktivität / Ereignisse:
System.Web.HttpException: Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster. ---> System.Web.UI.ViewStateException: Invalid viewstate.
Die Site läuft nicht auf eine Webfarm.
Versuche:
- <pages enableViewStateMac="false"/>
=Fehler ist wieder aufgetaucht.
- <pages validateRequest="true" enableViewStateMac="false" enableEventValidation="false" viewStateEncryptionMode ="Never" />
= hilft auch nicht
Workarround:
- Mit Firefox > Extras > private Daten löschen > Cache
- Mit IE >
Hilfe, wenn irgendwer das Problem schon gelöst hat, würde ich mich über einen Hinweis freuen.
Die Sammlung zum Thema:
Vielleicht ist folgender Eintrag in der Web.Config ein Workarround:
<pages enableEventValidation="false" viewStateEncryptionMode ="Never" />
siehe auch: http://aspadvice.com/blogs/joteke/archive/2006/02/02/15011.aspx
This is known to be a security risk and in my case it didn’t fix the problem.
I think I found another way to eliminate the Error, add this to your Button which triggers the Postback Event:
23 PostBackUrl=”~/yoursite.aspx”
Just post it back to the same site explicitly and you should be fine.
http://www.andreas-kraus.net/blog/validation-of-viewstate-mac-failed/
Eine lange Dikussion (ca. 90 Beiträge ) zu dem Thema in Englisch, verschieden Vorschläge, keine endgültige Lösung
http://forums.asp.net/1/1173230/ShowThread.aspx
Condition: validation error
Error: Validation of viewstate MAC failed. If this application is hosted by a Web farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm.
AutoGenerate cannot be used in a cluster. An unhandled exception occurred during the execution of the current Web request. Review the stack trace for more information about the error and where it originated in the code.
Or
Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Solution: Using a text editor, add the following setting to the Web.config file on the computer hosting either the Federation Service, Federation Service Proxy, or ADFS Web Agent that will be farmed:
<system.web>
<machineKey>
<machineKey validationKey="specify key for the appropriate algorithm" decryptionKey="specify key" validation="SHA1|MD5|3DES"/>
Or
Solution: Add the following element in the <system.web> section of the Web.config file on the computers hosting the Federation Service, Federation Service Proxy, or ADFS Web Agent that are set up in the farm:
<pages enableViewStateMac="false"/>
http://technet2.microsoft.com/WindowsServer/en/library/be269715-1ba8-4df4-abc8-7b3128b4fa4e1033.mspx?mfr=true