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?
Ellen HeijmansPosted Jul 6, 2015, 3:28 PM
In top of the file I have added using System.Configuration; It should therefore work.
And, if I had forgotten to add the namespace, it wouldn’t run in debug mode either, would it?
Vignesh ManiPosted Jul 6, 2015, 12:15 PM