Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
App.config after setup
posted

I've have a Windows Forms application that uses an app.config. It works fine when debugging in Visual Studio 2013.

In Visual Studio 2013 I use :

string database = ConfigurationSettings.AppSettings["Databasenaam"].ToString();

I create an Install Shield project and add the .exe and app.config.

After Setup on a different computer, it seems that it can’t read the app.config. If I remove all lines with ConfigurationSettings it runs fine. If I replace the lines I receive an error about a missing object reference.

 Anyone an idea of how to solve this?