View Single Post
  #1 (permalink)  
Old 21-02-2008, 14:25
kkbigal kkbigal is offline
new member
 
Join Date: Feb 2008
Posts: 3
Default Encrypting parts of .NET web.config - problems with shared hosting?

Hi there - just wondering if someone can advise me with a problem I've run into

I've got a connection string set in my web.config file and I wanted to encrypt it so it wasn't plain text. I know ASP doesn't serve up the web.config file if requested, but I still wanted to encrypt it for extra security.

Unfortunately, it doesn't seem to work on my hosting as I get the message:

"Failed to decrypt using provider 'RsaProtectedConfigurationProvider'. Error message from the provider: The RSA key container could not be opened."

Apparently, this is something to do with running on shared hosting.

Could anyone shed any light on possible solutions?
Reply With Quote