Could not load file or assembly log4net or one of its dependencies
Posted
by
Elie
on Stack Overflow
See other posts from Stack Overflow
or by Elie
Published on 2011-01-10T00:55:49Z
Indexed on
2011/01/10
18:53 UTC
Read the original article
Hit count: 532
I've been asked to take a look at an error in an ASP/C# application with its Paypal integration. The error, shown in full, is:
Could not load file or assembly 'log4net, Version=1.2.0.30714, 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)
From what I understand, this means that the actual file located (that is, log4net.dll in my bin directory) does not match the version expected based on some assembly configuration. The problem I'm having is that I cannot locate where this file is being referenced.
I have access to all the files in the web root directory of the site, and cannot locate any config files that reference this DLL. Where else might I need to look to determine what's causing the mis-match?
As a note, I've made sure that the version of the DLL in the bin directory is up to date, but this does not seem to have resolved anything.
© Stack Overflow or respective owner