[Mono-list] I cannot get working Mono with MySql connector and the System.Data.Common namespace

vtortola vtortola at gmail.com
Mon Apr 12 11:01:17 EDT 2010


Hi,

I've a small web project that uses the DbProviderFactories. I've downloaded
the non-install version of the MySql Connector, the dll is copied to the bin
directory correctly.

I've added the configuration to the web.config file:

  <system.data>
      <DbProviderFactories>
        <add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient"
description=".Net Framework Data Provider for MySQL"
             type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data,
Version=6.2.3.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d"/>
      </DbProviderFactories>
    </system.data>

It's working in my two windows/.net machines (one for development, and other
for testing in Hyper-V), but I cannot make it work in the machine with
linux/mono, I always get an error that says it cannot find the data
provider.

Should I do something special in Mono for make this work? I've checked
several documents and they don't say anything.

Kind regards.

PS: This is the error:
==============================================================================
Failed to find or load the registered .Net Framework Data Provider.
Description: HTTP 500. Error processing request.

Stack Trace: 

System.Configuration.ConfigurationErrorsException: Failed to find or load
the registered .Net Framework Data Provider.
  at System.Data.Common.DbProviderFactories.GetFactory (System.Data.DataRow
providerRow) [0x00000] in <filename unknown>:0 
  at System.Data.Common.DbProviderFactories.GetFactory (System.String
providerInvariantName) [0x00000] in <filename unknown>:0 
  at DataKraft.Data.GenericProvider..ctor (System.String providerName,
System.String connectionString) [0x00000] in <filename unknown>:0 
  at DSAS.DtHandler.ProcessRequest (System.Web.HttpContext context)
[0x00000] in <filename unknown>:0  

--------------------------------------------------------------------------------
Version information: Mono Runtime Version: 2.6.3 (tarball Fri Mar 12
16:17:13 UTC 2010); ASP.NET Version: 2.0.50727.1433 
==============================================================================

-- 
View this message in context: http://n4.nabble.com/I-cannot-get-working-Mono-with-MySql-connector-and-the-System-Data-Common-namespace-tp1837252p1837252.html
Sent from the Mono - General mailing list archive at Nabble.com.


More information about the Mono-list mailing list