Changed machine -RSA trouble

Discussion in 'ASP.NET / ASP.NET Core' started by OLTernative, May 27, 2010.

  1. Hi,
    I've got a new development machine and transferred my project files across from my old one. However, one thing that slipped my mind was the RSA Encryption Keys. When I try to run my project on the new machine, I get an error saying

    "Failed to decrypt using provider 'MyRsaProtectedConfigurationProvider'. Error message from the provider: The RSA key container could not be opened."

    I've still got the exported RSA xml file from step 2 in the RSA kb. Can I somehow use this? I tried importing it using the command:

    aspnet_regiis -pi "MyRsaProtectedConfigurationProvider" "C:\NetFrameworkConfigurationKey_username.xml" ('username' is replaced with my real one).

    It says that it's imported successfully, but I still get the error message. Is there a step I've missed?
    Thanks
     
  2. Ah problem fixed. I gave permission to the file using 'aspnet_regiis -pa' and now it's working!
     
  3. mjp

    mjp

    Cool, glad it works. Thanks for posting the follow up.
     

Share This Page