locked
Encryption error RRS feed

  • Question

  • User-278624196 posted

    Hi Expert 

    I am facing error web config files#

    when i have 2 connectionstring in webconfig files

    Line 120:  <encryptionConfiguration configProtectionProvider="DataProtectionConfigurationProvider">
    Line 121:    <EncryptedData>
    Line 122:      <CipherData>
    Line 123:        <CipherValue>AQAAANCMnd8

    Roemesh

    Friday, March 12, 2021 7:21 PM

All replies

  • User-278624196 posted

    i have used this command

    aspnet_regiis.exe -pd "connectionStrings" -app “/DemoApplication”

    but error message

    error message Failed to decrypt using provider 'DataProtectionConfigurationProvider'. Error message from the provider: Key not valid for use in specified state. (Exception from HRESULT: 0x8009000B)

    Sunday, March 14, 2021 4:42 AM
  • User690216013 posted

    error message Failed to decrypt using provider 'DataProtectionConfigurationProvider'. Error message from the provider: Key not valid for use in specified state. (Exception from HRESULT: 0x8009000B)

    Did you copy this web.config from another machine?

    Sunday, March 14, 2021 3:21 PM
  • User1065476709 posted

    Hi Roemesh,

    error message Failed to decrypt using provider 'DataProtectionConfigurationProvider'. Error message from the provider: Key not valid for use in specified state. (Exception from HRESULT: 0x8009000B)

    First you can try to run the command as an administrator and try again, if it still doesn't work, you can change "DataProtectionConfigurationProvider" to "RsaProtectionConfigurationProvider".

    Finally, you can try this command:

    aspnet_regiis.exe -pdf "connectionStrings" -app "/DemoApplication"

    Best regards,

    Sam

    Monday, March 15, 2021 6:01 AM
  • User-278624196 posted

    no it can  not work DataProtectionConfigurationProvider  value provided with external API

    Sunday, April 18, 2021 5:01 PM