APP CONFIG NOT FOUND - Advanced Installer Community
jacob13984
Posts: 1
Joined: Tue May 12, 2015 6:06 am

APP CONFIG NOT FOUND

I am having a WPF Application(VB) developed in VS2013, I built the exe using Advanced installer. After installation of exe and when i run the application it is giving error. I tried to debug the exe in visual studio and find out connection string to database is returning 'Nothing', were as it is specified in the app.config file. I hard coded the connection string, it works perfect, but not accessing from app.config. I build the exe through Advanced installer as follows; Project Type -> Installer -> Visual Studio Application -> EXE setup file. Asingle EXE setup which contains all installation file. Then i selected the visual studio solution (*.sln) file - > Release -> Run.

Is there anything missing? Why connection string is not picking from app.config? Please help i'm new to this.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: APP CONFIG NOT FOUND

Hello and welcome to our forums,

Thank you for your interest in our application.

Can you please confirm that the app.config file is installed alongside your application file. If not, can you please add it in "Files and Folders" page in the same folder as your application file, rebuild the setup project and test again the scenario?

If the app.config file is already installed alongside your application, then please try to manually (after installation) add "Everyone -> Full Control" permissions on it and test again the scenario. Maybe your application cannot access the config file due to some permissions restrictions.

Also, as a last suggestion, to check if the issue is generated by the installation setup you can try to manually install your application files and see if the behavior still replicates or not.

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

Return to “Common Problems”