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

Robert Jordan robertj at gmx.net
Mon Apr 12 11:09:18 EDT 2010


On 12.04.2010 17:01, vtortola wrote:
>
> 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>

Check the casing of the MySql.Data.dll on disk. Don't forget that
Linux is case sensitive.

For some brain-dead reasons, the ZIP file containing the connector for
Mono is containing lower-case files.

Robert




More information about the Mono-list mailing list