Click here to Skip to main content
15,879,613 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have devolped a desktop application using C# and SqlExpress2005. The connectionstring is stored in app.config file along with the server name, database name etc. infomation. If I install this application on a client desktop what steps are required and how to replace client SqlServer name and passord in app.config file.


Please give me an idea on this problem ,it's urgent.

Thanks in advance.

Randeep chauhan
Posted
Updated 4-Jun-11 3:03am
v2

You can try to build a setup and deployment[^] project for the exe file.
Storing passwords directly in app.config is not a great idea - try and encrypt these passwords while storing in the app.config file - see here[^] for that.
 
Share this answer
 
Comments
Monjurul Habib 5-Jun-11 13:41pm    
nice links, my 5.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900