Last post Mar 15, 2021 02:23 PM by l.laxmikant
Mar 12, 2021 07:33 PM|Roemesh|LINK
a few seconds ago|LINK|22.214.171.124
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
Mar 13, 2021 12:01 PM|PatriceSc|LINK
Always tell which error message you have without waiting for someone to ask. It should help to narrow down what happens else we have to guess what could happen among everythign wrong that could happen (and if something rare it will be hard to guess right).
It happens when deploying your app to another machine? This provider users a key that depends on the user account or on the machine and so my best guess would be that it happens when you try to run this app suing another machine or another account than yours.
Mar 13, 2021 07:41 PM|Roemesh|LINK
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)
Mar 15, 2021 02:23 PM|l.laxmikant|LINK
Are you trying to use web.config encrypted in one machine and using it in another machine?
Encryption is machine-specific so if you encrypt a connection string on one machine and deploy code to other machines. Encryption is not going to work.