[Mono-list] Problem with MySQL connection using ProviderFactory

Danny dgortonii at gmail.com
Fri Jul 22 14:20:24 EDT 2011


You can add this to your app.config file using the <add/> element and it 
will get appended to the system's default set.  An example from my 
system that uses Firebird...

   <system.data>
     <DbProviderFactories>
       <add name="FirebirdClient Data Provider"
            invariant="FirebirdSql.Data.FirebirdClient"
            description=".Net Framework Data Provider for Firebird"
            type="FirebirdSql.Data.FirebirdClient.FirebirdClientFactory, 
FirebirdSql.Data.FirebirdClient, Version=2.5.1.0, Culture=neutral, 
PublicKeyToken=3750abcc3150b00c" />
     </DbProviderFactories>
   </system.data>

The <system.data> element is a child of <configuration>.

Regards,
Danny

On 07/22/2011 12:16 PM, Vinod wrote:
> I am sorry if this sounds noobish (I am a noob as far as mono goes
> btw!), but where do I find <system.data><DbDbProviderFactories>...In
> windows it's machine.config. where is it located in Linux (Open SUSE
> 11.3 to be specific).
>
> Thanks for your replies.
>
> -Vinod
>
> On Fri, Jul 22, 2011 at 4:50 PM, Robert Jordan [via Mono] <[hidden
> email] </user/SendEmail.jtp?type=node&node=3687122&i=0>> wrote:
>
>     On 22.07.2011 12:45, Vinod wrote:
>      > well I did notice the casing. I corrected it in the code too. I
>     get the error
>      > message now in small letters -___-
>
>     Maybe I was too sloppy in my post. The assembly file name
>     *must* be "MySql.Data.dll".
>
>     How does your <system.data><DbDbProviderFactories> looks like?
>     Check the casing of the provider name, assembly name etc.
>
>     Robert
>
>     _______________________________________________
>     Mono-list maillist  - [hidden email]
>     <http://user/SendEmail.jtp?type=node&node=3686475&i=0>
>     http://lists.ximian.com/mailman/listinfo/mono-list
>
>
>     ------------------------------------------------------------------------
>     If you reply to this email, your message will be added to the
>     discussion below:
>     http://mono.1490590.n4.nabble.com/Problem-with-MySQL-connection-using-ProviderFactory-tp3686395p3686475.html
>
>     To unsubscribe from Problem with MySQL connection using
>     ProviderFactory, click here.
>
>
>
> ------------------------------------------------------------------------
> View this message in context: Re: Problem with MySQL connection using
> ProviderFactory
> <http://mono.1490590.n4.nabble.com/Problem-with-MySQL-connection-using-ProviderFactory-tp3686395p3687122.html>
> Sent from the Mono - General mailing list archive
> <http://mono.1490590.n4.nabble.com/Mono-General-f1490591.html> at
> Nabble.com.
>
>
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list


More information about the Mono-list mailing list