We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

thecodemaker
Posts: 2
Joined: Thu Jun 26, 2014 2:00 pm

HOW TO EDIT CONNECTION STRING .NET

I was able to deploy full database and install a windows service, with the trial enterprise edition but, I have issue with the connection string.

My connection string is in the app.config. inside <appSetting> i have the following key <add key="connPLEDS" value="data source=[SERVER_PROP];initial catalog=[PLDBName];User ID=[CSLOGIN];Password=[CSPASSWORD];persist security info=False;packet size=4096"/> I use this as the connection string. How can I replace PLDBNAME SERVER_PROP, CSLOGIN,CSPASSWORD with the necessary information. I'm been looking how to achieve this with out any success. I have the public properties but nothing happens. What I'm missing here. Please help me with this. I'm trying to complete this for a presentation so my boss can approve the purchase of the the enterprise edition. we currently own the professional edition.

Dialog are already done also properties are PUBLIC.
thecodemaker
Posts: 2
Joined: Thu Jun 26, 2014 2:00 pm

Re: HOW TO EDIT CONNECTION STRING .NET

I finally make it. This was my confusion. Import your config as xml file I mean config files are really xml file go figure. I will try to explain step by step.
To modify your .config file you need to follow this steps
1. Import it as it was an xml. Dont worry just do it. go to import xml file then look for your config app. Make sure to change the explorer window to all files so you can spot your config .
2. Right click/Properties on your xml config file impersonator
3. Navigate on the nodes and look for your connection string
3. Add your Properties on your connection string just like this data source=[SERVER_PROP];initial catalog=[DATABASE_PROP];User ID=[CSLOGIN];Password=[CSPASSWORD];persist security info=False;packet size=4096
4. Remember properties are mapped with your dialog. I assume that you know how to work with properties and mapped them to your dialog.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: HOW TO EDIT CONNECTION STRING .NET

Hello and welcome to Advanced Installer forums,

I'm glad you got this working by yourself.
Thank you for sharing this with us. I'm sure it will help further users in the same situations.

If you need any help, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
twinkle45
Posts: 1
Joined: Mon Oct 27, 2014 7:00 am

Re: HOW TO EDIT CONNECTION STRING .NET

I'm been looking how to achieve this with out any success. I have the public properties but nothing happens. What I'm missing here. Please help me with this. I'm trying to complete this for a presentation so my boss can approve the purchase of the the enterprise edition. we currently own the professional edition.
Mohsin
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: HOW TO EDIT CONNECTION STRING .NET

Hi Mohsin and welcome to Advanced Installer forums,

I'm not sure I fully understand your scenario. Can you please give us more details (maybe exemplify)?

In order to have a better view about this, can you please send us the .AIP (project file) to support at advancedinstaller dot com so we can investigate it? If it contains confidential information you can send us a small test project which reproduce this behavior.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”