I am getting an exception stating: "The key 'ConnectString' does not exist in the appSettings configuration section." The app.config file contains the following:
<?xml version="1.0" encoding="utf-8"?>
<add key="ConnectString" value="Server=HP-LAPTOP; Database=Test; User ID=xxxx; Password=xxxx; Trusted_Connection=false;"/>
The code throwing the exception is:
ConnectString = (string)ConfigFile.GetValue("ConnectString", ConnectString.GetType());
I have other projects in the same solution where this is working.