David,

The first thing is to ensure that the connectionType is specified as an
assembly qualified name, i.e. "classname,assemblyname". This allows the
.net framework to locate the type in a separate assembly an load it.

Also you need to enable internal log4net debugging to see the error
messages that the ADONetAppender produces.
http://logging.apache.org/log4net/release/manual/faq.html#internalDebug

Cheers,
Nicko

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: 25 November 2004 23:05
> To: log4net-user@logging.apache.org
> Subject: ado.net and MySQL
> 
> hi,
> 
> Is it possible to connect to a MySQL database?
> 
> I have installed the MySQL Connector/Net 1.0 component, and I 
> tried to create an appender with this parameter:
> <appender name="ADONetAppender_MySQL" 
> type="log4net.Appender.ADONetAppender">
> <connectionType value="MySql.Data.MySqlClient" /> <...
> 
> but it doesn't work.
> 
> Is there someone how has some experience with ado.net 
> appender on MySQL database?
> Thanks for any help.
> 
> Best Regards
> 
> David
> 

Reply via email to