Quantcast
Channel: Active questions tagged config - Stack Overflow
Viewing all articles
Browse latest Browse all 5057

RSAProtectedConfigurationProvider is not working unless I run as Admin

$
0
0

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.


Viewing all articles
Browse latest Browse all 5057

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>