|
From: Wang, G. <gw...@ae...> - 2007-05-18 20:04:04
|
Hi, It works when I put the dlls in the bin directory. But it stopped working when all the dlls are moved to the GAC. Any idea why? Best Regards, George =20 |
|
From: Mark P. <mpo...@in...> - 2007-05-18 20:12:50
|
Hi George, By not work I guess you mean you don't see any logging? The behavior in the current release is to silently fail to using the NoOpLogger (which doesn't do any logging) if the specified factory adapter can't be found. I've changed that behavior in the code that is in CVS, so an ConfigurationException is thrown. But onto your issue. Are you using the log4net factory adapter? If you are make sure that for log4net 1.2.10 you use the type 1.2.10 -> Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter, Common.Logging.Log4net And for 1.2.9 1.2.9 -> Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter, Common.Logging.Log4Net129 And that they are also in the GAC or in the bin path. If you could try with the 'built-in' factory adapters, i.e Common.Logging.Simple.ConsoleOutLoggerFactoryAdapter, Common.Logging Hope this helps. Cheers, Mark -----Original Message----- From: net...@li... [mailto:net...@li...] On Behalf Of Wang, George Sent: Friday, May 18, 2007 4:04 PM To: net...@li... Subject: [Netcommon-developer] dll in gac Hi, It works when I put the dlls in the bin directory. But it stopped working when all the dlls are moved to the GAC. Any idea why? Best Regards, George ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Netcommon-developer mailing list Net...@li... https://lists.sourceforge.net/lists/listinfo/netcommon-developer |
|
From: Bruno B. <br...@gm...> - 2007-05-18 21:14:51
|
Hi George, If you registered dll into the GAC, don't forget to use full assembly qualified name : exemple for the log4net 1.2.10 factory adapter : Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter, Common.Logging.Log4Net, Version=1.0.2.2, Culture=neutral, PublicKeyToken=af08829b84f0328e HTH, Bruno 2007/5/18, Mark Pollack <mpo...@in...>: > > Hi George, > > By not work I guess you mean you don't see any logging? The behavior in > the > current release is to silently fail to using the NoOpLogger (which doesn't > do any logging) if the specified factory adapter can't be found. I've > changed that behavior in the code that is in CVS, so an > ConfigurationException is thrown. > > But onto your issue. Are you using the log4net factory adapter? If you > are > make sure that for log4net 1.2.10 you use the type > > 1.2.10 -> Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter, > Common.Logging.Log4net > > And for 1.2.9 > > 1.2.9 -> Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter, > Common.Logging.Log4Net129 > > > And that they are also in the GAC or in the bin path. > > If you could try with the 'built-in' factory adapters, i.e > Common.Logging.Simple.ConsoleOutLoggerFactoryAdapter, Common.Logging > > Hope this helps. > > Cheers, > Mark > > > > > > -----Original Message----- > From: net...@li... > [mailto:net...@li...] On Behalf Of > Wang, George > Sent: Friday, May 18, 2007 4:04 PM > To: net...@li... > Subject: [Netcommon-developer] dll in gac > > Hi, > > It works when I put the dlls in the bin directory. But it stopped > working when all the dlls are moved to the GAC. Any idea why? > > Best Regards, > George > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Netcommon-developer mailing list > Net...@li... > https://lists.sourceforge.net/lists/listinfo/netcommon-developer > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Netcommon-developer mailing list > Net...@li... > https://lists.sourceforge.net/lists/listinfo/netcommon-developer > |
|
From: Wang, G. <gw...@ae...> - 2007-05-18 21:32:20
|
=20 Thanks Bruno. That's the problem. (It took me a while to figure it out thought:-)) From: Bruno Baia [mailto:br...@gm...]=20 Sent: Friday, May 18, 2007 5:15 PM To: Mark Pollack Cc: Wang, George; net...@li... Subject: Re: [Netcommon-developer] dll in gac =20 Hi George, =20 If you registered dll into the GAC, don't forget to use full assembly qualified name : =20 exemple for the log4net 1.2.10 factory adapter : =20 Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter, Common.Logging.Log4Net, Version=3D1.0.2.2, Culture=3Dneutral, PublicKeyToken=3Daf08829b84f0328e =20 =20 HTH,=20 Bruno =20 2007/5/18, Mark Pollack <mpo...@in...>:=20 Hi George, By not work I guess you mean you don't see any logging? The behavior in the current release is to silently fail to using the NoOpLogger (which doesn't=20 do any logging) if the specified factory adapter can't be found. I've changed that behavior in the code that is in CVS, so an ConfigurationException is thrown. But onto your issue. Are you using the log4net factory adapter? If you are=20 make sure that for log4net 1.2.10 you use the type 1.2.10 -> Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter, Common.Logging.Log4net And for 1.2.9 1.2.9 -> Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter , Common.Logging.Log4Net129 And that they are also in the GAC or in the bin path. If you could try with the 'built-in' factory adapters, i.e Common.Logging.Simple.ConsoleOutLoggerFactoryAdapter , Common.Logging Hope this helps. Cheers, Mark -----Original Message----- From: net...@li...=20 [mailto:net...@li...] On Behalf Of Wang, George Sent: Friday, May 18, 2007 4:04 PM To: net...@li... Subject: [Netcommon-developer] dll in gac Hi, It works when I put the dlls in the bin directory. But it stopped working when all the dlls are moved to the GAC. Any idea why?=20 Best Regards, George ------------------------------------------------------------------------ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take=20 control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Netcommon-developer mailing list=20 Net...@li... https://lists.sourceforge.net/lists/listinfo/netcommon-developer=20 ------------------------------------------------------------------------ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.=20 http://sourceforge.net/powerbar/db2/ _______________________________________________ Netcommon-developer mailing list Net...@li... https://lists.sourceforge.net/lists/listinfo/netcommon-developer =20 |