I would like to use: RSAProtectedConfigurationProvider, but I have the below error message:
{"ClassName":"System.Security.Cryptography.CryptographicException","Message":"Object already exists.\r\n",
{"ClassName":"System.Configuration.ConfigurationErrorsException","Message":"An error occurred executing the configuration section handler for connectionStrings.","Data":null,"InnerException":{"ClassName":"System.Configuration.ConfigurationErrorsException","Message":"Failed to encrypt the section 'connectionStrings' using provider 'RsaProtectedConfigurationProvider'. Error message from the provider: Object already exists.\r\n","Data":null,"InnerException":{"ClassName":"System.Security.Cryptography.CryptographicException","Message":"Object already exists.\r\n","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":" at
If I run as an administrator, then it works fine either right clicking on Visual Studio 2019 or right click on the actual .exe.
Does RSAProtectedConfigurationProvider ONLY work with Admin rights?
I have admin rights on the box, but I am not the main administrator account.
Due to this, do I need to use: DataProtectionConfigurationProvider?
I am encrypting this via code as well.