Encryption / Decryption of app.config sections using RsaProtectedConfigurationProvider

后端 未结 3 1994
遇见更好的自我
遇见更好的自我 2021-01-05 11:13

During the installation of our program we run this method to encrpyt sections of the app.config:

// Get the application configuration file.
Configuratio         


        
3条回答
  •  轮回少年
    2021-01-05 11:19

    I ran into similar issues while debugging within Visual Studio 2010 on Win 7 with UAC set to it's default protection.

    In order for me to get around this issue, I had to run Visual Studio as the Administrator ("Run as Administrator").

    I had the same issue with trying to run the aspnet_regiis.exe to encrypt the section of my web.config. If I didn't run the commandline/console "as Administrator" I would get a commandline error that was even more cryptic: "Object already exists."

提交回复
热议问题