Questions tagged [machinekey]

143 questions
0
votes
1 answer

MachineKey change does not reflect in web.config

In my web application, there is an administrator ability to change the validation method/algorithm to SHA1 to HMACSHA256, HMACSHA384, etc. etc. In the code, when I retrieve the value from the web.config using ConfigurationManager, it shows as being…
0
votes
0 answers

ASP.NET Validation of Viewstate MAC failed on Button Press

When I try and click on a button in my asp.net web form I am thrown an error that states: Server Error in '/' Application. Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that configuration…
FrankTheTank
  • 765
  • 2
  • 12
  • 30
0
votes
2 answers

Viewstate MAC failed error in ASP.NET using Autogenerate key, not on farm or cluster

Error is: "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." I am not hosting…
Taylor Brown
  • 1,689
  • 2
  • 17
  • 33
0
votes
1 answer

MachineKey validation using nginx and php

So we are trying to make oauth authorization with decoupled auth server and many resource servers. We are using ISS servers for them and validating access tokens using machine key.
grinry
  • 421
  • 1
  • 7
  • 17
0
votes
1 answer

"The anti-forgery token could not be decrypted"

I am running IIS 8.5 on a load-balanced (two-node) web farm. We are getting sporadic errors: System.Web.Mvc.HttpAntiForgeryException (0x80004005): The anti-forgery token could not be decrypted.... I have tried/checked various solutions: At the…
anon
  • 4,578
  • 3
  • 35
  • 54
0
votes
1 answer

Why would adding targetFramework="4.5" to httpRuntime in web.config make my decryption key invalid?

I've added IIS Web Sockets into my site recently. To do this I had to add the targetFramework="4.5" into the httpRuntime tag of the web.config. Unfortunately, now when I try and log in to my site I get the following error: Decryption key specified…
0
votes
0 answers

Synchronizing machine keys in ASP.NET web application

I have a web application which is implemented using ASP.NET Web forms. The problem is that my login system is not working well on a hosting which is a web farm. The issue is that user gets logged out automatically after 1 min being logged in onto…
perkes456
  • 1,163
  • 4
  • 25
  • 49
0
votes
0 answers

anti-forgery token could not be decrypted

Some forms in my asp.net website cause "anti-forgery token could not be decrypted" exception. I tried some of the solutions but they did not work: I dont't have duplicate @Html.AntiForgeryToken() in my form. I dont't use web farm but I tried adding…
MinaS
  • 69
  • 9
0
votes
1 answer

Setting machine key in 2 servers web.config does not resolve error "MAC address validation failed"

We have two servers: one for development purpose and another for test environment, we log each request in development server and replay the logged request on to the test environment server and based on security reason we should not set…
mc.parsa
  • 56
  • 1
  • 6
0
votes
1 answer

Validation of viewstate MAC failed.

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 Same question is there…
Razack
  • 950
  • 3
  • 13
  • 26
0
votes
1 answer

Encrypting MachineKey with AES256

I've spent a while googling this to no avail so either this is trickier than I thought or I fundamentally misunderstand how this works. My web server has a service whose web.config file contains a machinekey. I want to encrypt it.
Chris
  • 37
  • 1
  • 3
0
votes
1 answer

Validation of viewstate MAC failed ASP.NET

I am receiving the error message below: 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…
Prashant16
  • 1,514
  • 3
  • 18
  • 39
0
votes
1 answer

Do I need to specify MachineKey for iis instances using shared configuration? And Why?

I am setting up iis webfarm using shared configuration following this tutorial: http://www.iis.net/learn/manage/managing-your-configuration-settings/shared-configuration_264 In this article, it mentioned how to export iisConfigurationKey to import…
bigbearzhu
  • 2,381
  • 6
  • 29
  • 44
0
votes
1 answer

System.Web.UI.ViewStateException Invalid viewstate. Client IP: 127.0.0.1 Port: xxx Referer: http:///

I currently have an intermittent issue where users receive the error message in the title of this post: System.Web.UI.ViewStateException Invalid viewstate. Client IP: 127.0.0.1 Port: xxx Referer: xxx I've finally managed to replicate this in our…
Tom Miller
  • 431
  • 1
  • 5
  • 16
0
votes
0 answers

I am in the middle of transfering my website to a new server and new domain and getting error

I am in the middle of transferring my website to a new server and new domain. Everything works except when I log into the website (using the asp.net membership feature) i get redirected back to the old url and get this error: Validation of viewstate…
1 2 3
9
10