So I am using the aspnet_regiis.exe tool to encrypt sections of the web.config in my asp.net applications and services. I have done this for years successfully on Windows Server 2003 (IIS 6). However I just moved some apps over to Windows Server 2008 R2 (with IIS 7.5) and I am now receiving the following error at runtime:
"Server was unable to process request. ---> Failed to decrypt using provider 'RsaProtectedConfigurationProvider'. Error message from the provider: Bad Data."
Now I am quite familiar with this process and am stumped at what I have missed this time around. I have done ALL of the following which typically suffices for the process on the server. PLEASE READ ALL AND DO NOT PROVIDE RESPONSES OR LINKS FOR THINGS I HAVE ALREADY DONE Thanks!!
- Imported the keys to the server using aspnet_regiis -pi Result: Success
- Given FULL permission (using -full switch) using aspnet_regiis -pa to ALL of the following accounts Result: Success