The type Database cannot be constructed

The type Database cannot be constructed

Postby iunabilly » Tue 27 Dec 2011 22:01

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 :




























smtpServer="smtp.gmail.com" userName="dan@cloudmobmedia.com" password="pwd" useSsl="true" async="true"/>




























































































































I wonder what's the mattter?? Can you help ??
iunabilly
 
Posts: 1
Joined: Tue 27 Dec 2011 21:49

Postby Pinturiccio » Thu 05 Jan 2012 08:50

We are investigating the issue and we will notify you about results as soon as possible.
Pinturiccio
Devart Team
 
Posts: 2024
Joined: Wed 02 Nov 2011 09:44

Postby Shalex » Tue 17 Jan 2012 13:25

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.
Shalex
Devart Team
 
Posts: 7781
Joined: Thu 14 Aug 2008 12:44


Return to dotConnect for MySQL