Failed to encrypt the section [name] using provider RsaProtectedConfigurationProvider. Error message from the provider: Object already exists.

If you're running aspnet_regiis to encrypt a section in your web.config, e.g.

 aspnet_regiis -pef mytestsection .

(assuming your current directory contains the web.config and the section is called 'mytestsection')

And you get a message ...   Object already exists  trying running the Visual Studio command prompt as an administrator.


Comments (2) -

  • Aye Thazin Kyaw

    8/24/2017 10:24:27 AM | Reply

    Hi, Do you have solution for this issue?

    • Jason Roberts

      8/25/2017 5:00:37 AM | Reply

      Sorry Aye, this is a very old post that was imported from a previous blog engine and seems to have truncated some of the text, as the article suggests: "trying running the Visual Studio command prompt as an administrator"

Add comment