I tried encrypting connection string on my machine A .
It was successful .
I exported the key and the encrypted web config to some other machine B .
It tried to decrypt the web config using that exported key as an Administrator .
But it failed saying
C:\Windows\system32>cd C:\Windows\Microsoft.NET\Framework64\v4.0.30319 C:\Windows\Microsoft.NET\Framework64\v4.0.30319>aspnet_regiis -pi "NewEncryptKey" "C:\Users\abalawan\Desktop\NewStuartCN\encryptkeynew.xml" Importing RSA Keys from file.. Succeeded! C:\Windows\Microsoft.NET\Framework64\v4.0.30319>aspnet_regiis -pa "NewEncryptKey" "NT AUTHORITY\NETWORK SERVICE" Adding ACL for access to the RSA Key container... Succeeded! C:\Windows\Microsoft.NET\Framework64\v4.0.30319>aspnet_regiis -pdf "connectionSt rings" "C:\Users\abalawan\Desktop\NewStuartCN" Decrypting configuration section... Failed to decrypt using provider 'NewEncryptProvider'. Error message from the pr ovider: Not enough storage is available to process this command. (C:\Users\abalawan\Desktop\NewStuartCN\web.config line 35) Not enough storage is available to process this command. Failed!
What am I missing here ? Any help will be much appreciated.