Web Farm)? Have you checked the machine key across the CD servers?
- forms authentication tickets,
- MVCs anti-forgery tokens,
- and other services which use machine key
- any encryption/decryption using machine key
functionality is machine key dependent.
is not sync across the multiple CD servers, then you might face some below problem.
- Sometimes login failed
(during password encryption/decryption)
- Server Error in ‘/’
Application.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
after enabled the affinity in the load balancer
(affinity) helps to ensure that any
given client only interacts with one physical server behind the load balancer
so that all cryptographic payloads will be both generated by and consumed by
the same server.
balancers will redirect the client to a different physical server if the
original server to which the load balancers were affinitized goes offline. This causes the new server to
reject cryptographic payloads. That the client currently has.
frequently and we didn’t set the machine key in the web config. so this is the root cause of all problems
element for separate web config application:
- Open your IIS
Manager from Administrative tool -> Internet
Information Services Manager.
- In Connection pane
on left side of window, click on the website.
Sitecore Always Recommended to keep the same machine key in web config across the multiple CD servers environment
Happy Sitecore 🙂