Last post Aug 03, 2007 12:04 PM by bmains
Jun 25, 2007 10:51 AM|shapper|LINK
I created a code to access to a database using Enterprise Library Data Block:
Dim dbUser As Database = DatabaseFactory.CreateDatabase("MyDB")
When I run my I get the following error:
'System.Configuration.ConfigurationErrorsException: The requested database MyDB is not defined in configuration.
Could someone tell me what am I missing here?
Jun 25, 2007 12:55 PM|bmains|LINK
Is this 2.0 code, and if so, do you have the following defined in your configuration file:
<add name="MyDB" connectionString=".." />
Aug 02, 2007 12:19 PM|jfkrueger|LINK
I am having the same issue. And YES, the connection string is defnined in my app.config file. Can anyone offer any guidance on this? The project is a Sequential Workflow Library project and it is getting all of the other connection strings just fine, it
is only this one that is causing a problem. It is for a MySQL database if that matters.
Thanks for any help!
Aug 03, 2007 12:04 PM|bmains|LINK
I don't know if the version of EL you are using supports MySql; I would check the EL pages to see if it does, or do some googling around. It might with no problem, but I don't know offhand.