Page 1 of 1

The type Database cannot be constructed

Posted: Tue 27 Dec 2011 22:01
by iunabilly
Hi,
I am changing the db for my application from SQL Server to MySQL.
I am using EntrepriseLibrary 5.0 and ASP.NET 4.0

When i am going to my page, what works perfect with the SQLServer connection string fails with the MySQL one.

I have downloaded dotConnect for MySQL and placed the relevant dlls in my bin directory.

My Web.config goes as follows :




































-->































































-->







-->














































I wonder what's the mattter?? Can you help ??

Posted: Thu 05 Jan 2012 08:50
by Pinturiccio
We are investigating the issue and we will notify you about results as soon as possible.

Posted: Tue 17 Jan 2012 13:25
by Shalex
Please replace

Code: Select all

providerName="dotConnect for MySQL"
with

Code: Select all

providerName="Devart.Data.MySql"
in the connectionStrings and providerMappings sections of your *.config. An example of our provider registration is available at %ProgramFiles%\Devart\dotConnect\MySQL\Enterprise Library\NET3.5\DataAccessQuickStart\CS\App.config.

Notify us about the results.