Asp.net Validation of viewstate MAC failed

Microsoft says to never use a key generator web site. Like everyone else here, I added this to my web.config. <System.Web> <machineKey decryptionKey=”ABC123…SUPERLONGKEY…5432JFEI242″ validationKey=”XYZ234…SUPERLONGVALIDATIONKEY…FDA” validation=”SHA1″ /> </system.web> However, I used IIS as my machineKey generator like so: Open IIS and select a website to get this screen: Double click the Machine Key icon to get … Read more

IsolateApps causes Decryption key specified has invalid hex characters

The IsolateApps modifier causes ASP.NET to generate a unique key for each application on your server. This is only applicable if you are getting ASP.NET to auto-generate keys at runtime. If you are not getting ASP.NET to auto-generate keys, and are instead specifying the keys using decryptionKey=”{hex-key value}”, then the way to get ASP.NET to … Read more

Adding machineKey to web.config on web-farm sites

This should answer: How To: Configure MachineKey in ASP.NET 2.0 – Web Farm Deployment Considerations Web Farm Deployment Considerations If you deploy your application in a Web farm, you must ensure that the configuration files on each server share the same value for validationKey and decryptionKey, which are used for hashing and decryption respectively. This … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)