can't find connection string after publish wpf - Advanced Installer Community
inna.rahay
Posts: 3
Joined: Wed Feb 12, 2014 2:21 am

can't find connection string after publish wpf

Hello,
I've got a simple promble...
when I publish my wpf application, it can't find the connection string in the app.config...
it says : no connection string named "*****" could be find in the application config file.
don't know why...
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: can't find connection string after publish wpf

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

I'm afraid I don't fully understand what is your scenario. Can you give us more details (maybe exemplify) about how this issue is related with Advanced Installer?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
inna.rahay
Posts: 3
Joined: Wed Feb 12, 2014 2:21 am

Re: can't find connection string after publish wpf

Hi... Thank you for answering...
well when I publish my application through visual studio, it works well... but from Advanced Installer it's 2 scenario :
from advanced installer first... I run advanced installer, then select visual studio project, debug, select components, then finish... after building installation and install the application, it seems it can't find the connection string !!!!
the second scenario is from the visual studio... right click on solution, new project, select advanced installer, then edit in advanced installer, I have to manually select resources.... after all process, it works well now !!!
don't know what am I doing wrong when I want to create an installation from advanced installer itself...
if I have to bring more information , let me know... thank u :)
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: can't find connection string after publish wpf

Hello,

You should make sure that your application config file is always installed alongside your application file. So, you should make sure the application config file is added beside your application in "Files and Folders" page from your installation project.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
inna.rahay
Posts: 3
Joined: Wed Feb 12, 2014 2:21 am

Re: can't find connection string after publish wpf

I added manually the app.config file, but problem still occurs... I think I'm ok with creating installation project with visual studio...
but if you wanna know what am doing wrong or is it a bug or something, we can continue this post to achieve a result :) ... because I really love Advanced Installer, it's completely user friendly program...
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: can't find connection string after publish wpf

Hello,

If you want you can send us your VS solution (without source files) you are trying to import, the .aip (project file) added from VS to your solution and the .aip created directly from Advanced Installer by importing your VS solution to support at advancedinstaller dot com so we can investigate. It would be also useful if you could isolate the behavior in a buildable sample and send it us so we can test.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”