IIS MachineKey Requirements for Load balancers
By default, all Passwordstate installs set the Machine Key in IIS to “Auto-Generate” which randomises the Validation and Decryption machine key on the web server – used for ASP.NET ViewState.
If you have multiple Passwordstate web servers being Load Balanced, you will need to manually set the MachineKey on all web servers – to ensure seamless failover of session state.
Below are the steps for this:
- On your primary web server, open Internet Information Services (IIS) Manager
- Browse to the Passwordstate website, and click on Machine Key icon
- Click the Generate Keys button on the right-hand side of the page, and then click the Apply button
- Copy the "C:\inetpub\Passwordstate\web-machineKey.config" file across to your second Passwordstate webserver, replacing the existing file