An IIS server was cloned. This is IIS 7.5. This is from a virtual environment. After the cloning, it is normal something has to be done for the machine key so it would work in the new server. The recommanded approach is this:
Export using the following commands
aspnet_regiis -px "iisConfigurationKey" "D:\iisConfigurationKey.xml" -pri
aspnet_regiis -px "iisWasKey" "D:\iisWasKey.xml" –pri
And for the import use
aspnet_regiis -pi "iisConfigurationKey" "D:\iisConfigurationKey.xml"
aspnet_regiis -pi "iisWasKey" "D:\iisWasKey.xml"
I succeeded to execute the first command. The second one gives: "Key not valid for use in specified state".
Without doing anything, if you go in IIS, Authentication, you will get a message "Failed to decrypt attribute 'password'".
Anyone would know the proper procedure after a clone so to adjust this little setting in IIS so it would be ready to work as is?