log4net reference issues

346 views
Skip to first unread message

A.S.

unread,
May 26, 2010, 10:24:48 AM5/26/10
to nhprof
I just downloaded NHibernate.Profiler-Build-692 because the version I
had been using told me it was too old and I needed to get an updated
version.

My project references NHibernate.dll version 1.0.2.0 and log4net.dll
version 1.2.9.0. When I reference
HibernatingRhinos.Profiler.Appender.dll in my project and try to
browse to my web site I receive the following error: "Could not load
file or assembly 'log4net, Version=1.2.10.0, Culture=neutral,
PublicKeyToken=1b44e1d426115821' or one of its dependencies. The
located assembly's manifest definition does not match the assembly
reference. (Exception from HRESULT: 0x80131040)".

NHibernateProfiler references log4net.dll version 1.2.10.0.

If I reference log4net.dll version 1.2.10.0 and again try to browse to
my web site I receive this error: "Could not load file or assembly
'log4net, Version=1.2.9.0, Culture=neutral,
PublicKeyToken=b32731d11ce58905' or one of its dependencies. The
located assembly's manifest definition does not match the assembly
reference. (Exception from HRESULT: 0x80131040)".

How can I resolve this issue without moving to a different version of
NHibernate?

Ayende Rahien

unread,
May 26, 2010, 10:44:04 PM5/26/10
to nhp...@googlegroups.com
The easiest thing to do would be to recompile nhibernate 1.0.2 with log4net 1.2.10
That would also be the long term approach. 
I can provide you with an appender bound to 1.2.9, but 1.0.2 is about 4 - 5 years old, and NH Prof isn't really meant to work with that (it does, to a certain degree, though).


--
You received this message because you are subscribed to the Google Groups "nhprof" group.
To post to this group, send email to nhp...@googlegroups.com.
To unsubscribe from this group, send email to nhprof+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nhprof?hl=en.


Reply all
Reply to author
Forward
0 new messages