<?xml version="1.0" encoding="Windows-1252"?> <configuration> <configSections> <section name="databases" type="System.Configuration.NameValueSectionHandler" /> <section name="databaseSets" type="System.Configuration.NameValueSectionHandler" /> </configSections> <appSettings> <!-- User application and configured property settings go here.--> <!-- Example: <add key="settingName" value="settingValue"/> --> <add key="SecurityDatabaseSetKey" value="CustA" /> <add key="SecurityDatabaseKey" value="Northwind" /> <add key="DatabaseSetDefault" value="CustA" /> <add key="EventLog\Level" value="Verbose" /> <add key="EventLog\Machine" value="." /> <add key="EventLog\Name" value="Application" /> <add key="TraceLog\Level" value="Verbose" /> <add key="TraceLog\Machine" value="." /> <add key="TraceLog\Name" value="Application" /> <add key="TransactionLog\Level" value="Verbose" /> <add key="TransactionLog\Machine" value="." /> <add key="TransactionLog\Name" value="Application" /> <add key="LocalizeApp" value="false" /> <add key="SecurityEnabled" value="false" /> </appSettings> <databaseSets> <add key="CustA" value="Customer A (SQL Server)" /> <add key="CustB" value="Customer B (Visual FoxPro)" /> </databaseSets> <databases> <add key="CustA\Northwind\Connection" value="Data Source=Mercury;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=ISPS;" /> <add key="CustA\Northwind\DataAccessClass" value="DataAccessSql" /> <add key="CustB\Northwind\Connection" value="Provider=vfpoledb.1;Data Source=C:\Program Files\Mere Mortals .NET Framework\Samples\VFPData\northwind.dbc" /> <add key="CustB\Northwind\DataAccessClass" value="DataAccessOleDb" /> </databases> <system.windows.forms jitDebugging="true" /> </configuration>Ok so then I moved the exact same file to my app and just changed things to fit my app rather than the sample. I ended up with the exact same result as before:
"Error message: <databases> node not found in the configuration file."
The app.config was as follows:<?xml version="1.0" encoding="Windows-1252"?> <configuration> <configSections> <section name="databases" type="System.Configuration.NameValueSectionHandler" /> <section name="databaseSets" type="System.Configuration.NameValueSectionHandler" /> </configSections> <appSettings> <!-- User application and configured property settings go here.--> <!-- Example: <add key="settingName" value="settingValue"/> --> <add key="SecurityDatabaseSetKey" value="" /> <add key="SecurityDatabaseKey" value="" /> <add key="DatabaseSetDefault" value="TestData" /> <add key="EventLog\Level" value="Verbose" /> <add key="EventLog\Machine" value="." /> <add key="EventLog\Name" value="Application" /> <add key="TraceLog\Level" value="Verbose" /> <add key="TraceLog\Machine" value="." /> <add key="TraceLog\Name" value="Application" /> <add key="TransactionLog\Level" value="Verbose" /> <add key="TransactionLog\Machine" value="." /> <add key="TransactionLog\Name" value="Application" /> <add key="LocalizeApp" value="false" /> <add key="SecurityEnabled" value="false" /> </appSettings> <databaseSets> <add key="TestData" value="Test Data (Mercury)" /> <add key="LiveData" value="Live Data (Saturn)" /> </databaseSets> <databases> <add key="TestData\ISPS\Connection" value="Data Source=Mercury;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=ISPS;" /> <add key="TestData\ISPS\DataAccessClass" value="DataAccessSql" /> <add key="LiveData\ISPS\Connection" value="Data Source=Saturn;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=ISPS;" /> <add key="LiveData\ISPS\DataAccessClass" value="DataAccessSql" /> </databases> <system.windows.forms jitDebugging="true" /> </configuration>I tried filling the security database tags as well thinking that change may have made the difference. Nope.