I'm tinkering with a side project (a time card system), and one of the things I'd like to do with it is have different databases should the user want to keep things separated.
To keep it light and simple I'm using SQLite. I'm able to create a database file just fine. Now what I'm trying to do is add that file to the connectionstrings section of the config file programatically.
this is the line I'm using:
And it's throwing an error:
Clicking the "get general help for this exception" takes me to this:
https://msdn.microsoft.com/query/dev...ng-VB)&rd=true
The exception that is thrown when a configuration system error has occurred.
Really? No shlecking fit Sherlock!
Unrecognized configuration section connectionstrings.
???
Copied right from the config file:
So there is a connectionstrings node... so... what the heck am I missing here?
Meanwhile I'm going to rummage through google see if I can find something.
-tg
To keep it light and simple I'm using SQLite. I'm able to create a database file just fine. Now what I'm trying to do is add that file to the connectionstrings section of the config file programatically.
this is the line I'm using:
Code:
System.Configuration.ConfigurationManager.ConnectionStrings.Add(New System.Configuration.ConnectionStringSettings(databaseName, dbPath))
Quote:
Originally Posted by Copied from exception window
https://msdn.microsoft.com/query/dev...ng-VB)&rd=true
Quote:
The exception that is thrown when a configuration system error has occurred.
Unrecognized configuration section connectionstrings.
???
Copied right from the config file:
Code:
<connectionstrings>
<add name="DBConnectionString" connectionString="C:\" />
</connectionstrings>
Meanwhile I'm going to rummage through google see if I can find something.
-tg