We help IT Professionals succeed at work.
Get Started

editing ConnectionStrings in app.config

RossWilko asked
Last Modified: 2010-08-05

I have written an application for a client the application has a SQL server 2000 backend and I have written the application in VB.NET 2005.  It has been requested that they must be able to encrypt the configuration file, they have requested that the user may enter all connection details easily at point of installation, these details must then be encrypted.

They have also stated that they must be able to edit the connectionString at any time, but this option must not be easily accessible to any users, i.e only systems engineers, there are a lot of machines so this option needs to be as quick as possible.

My Initial thoughts are to create a seperate .EXE that will be launched as a custom action at runtime allowing saving of details (and encryption), this application would be in the same directory as the main application, and would look for a *.config in this directory (I guess this application could be used for changing connectionstrings on other applications aswell if required).

I am just wondering whether this seems a reasonable option, I have trawled the web, but havent seen anything similar, this worries me as maybe there is a better way to do this, or if has anyone come across any examples that satsify my clients request please let me know.

I have already started coding this but would be interested to get others feedback.


Watch Question
This problem has been solved!
Unlock 2 Answers and 3 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE