If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > ASP to MSSQL Encrypt Connection String

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-21-11, 04:20
morke morke is offline
Registered User
 
Join Date: Jul 2009
Posts: 20
Angry ASP to MSSQL Encrypt Connection String

Hi,
I have spent about a day on this without success.

Does anyone know of a method to encrypt a connection string to a MSSQL database from within a web.config file where the website is hosted on a shared hosting environment. I have managed to encrypt the connection and get it to work on a dedicated machine using aspnet_regiis. However, when moving the site to my site provider I get the following message:

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

Anyone solve this issue.

Thanks in advance.
Morke
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On