Last post Mar 06, 2018 07:57 AM by Eric Du
Mar 04, 2018 09:18 AM|Shibly|LINK
I want to encrypt the connection string in web.config file in the live server. I've create a function for the encryption but it won't work in the online server. In my local server it work perfect. My online server has a SSL encryption certificate.
Here is my function:
Private Sub WebConfigSecure()
Dim config As Configuration = WebConfigurationManager.OpenWebConfiguration("~")
Dim conStr As ConnectionStringsSection =
Can anyone help me please.
Thank in advance.
Mar 04, 2018 11:40 AM|mshoaiblibra|LINK
You cannot edit web.config directly. For encrypt connection string:
Mar 05, 2018 12:19 AM|oned_gk|LINK
You can use aspnet_regiis.exe to encrypt configuration section including connectionstring section in iis
Encrypting and Decrypting Configuration Sections
Mar 06, 2018 07:57 AM|Eric Du|LINK
According to your description, about how to encrypt connection string in web.config, please check the following tutorial:
How to encrypt (Connection String) webconfig on deployment? For security reason:
can encrypt ConnectionString in web.config on development machine and deploy on server?