I'm attempting to upgrade (at last!) the log4net install on my ASP.NET (II7, 64 bit, Windows 2008) web site to log4net v1.2.11.0. The web app was originally built with v1.2.0.30714. Unfortunately, simply replacing the reference in my ASP.NET Bin directory results in the error:
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) Ironically, Log4Net dutifully records the attempt to bind to the obsolete version fo log4Net: === Pre-bind state information === LOG: User = XXX (obscured) LOG: DisplayName = log4net, Version=1.2.0.30714, Culture=neutral, PublicKeyToken=b32731d11ce58905 (Fully-specified) LOG: Appbase = file:///E:/Websites/MySite/www/dev/ LOG: Initial PrivatePath = E:\Websites\MySite\www\dev\bin === LOG: This bind starts in default load context. LOG: Using application configuration file: E:\Websites\MySite\www\dev\web.config LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v2.0.50727\config\machine.config. LOG: Post-policy reference: log4net, Version=1.2.0.30714, Culture=neutral, PublicKeyToken=b32731d11ce58905 LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/dev/bbf437a3/411124d9/log4net.DLL. LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/dev/bbf437a3/411124d9/log4net/log4net.DLL. LOG: Attempting download of new URL file:///E:/Websites/MySite/www/dev/bin/log4net.DLL. WRN: Comparing the assembly name resulted in the mismatch: Revision Number ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated. The relevant section of web.config is: <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" /> I've also attempted to strongly type the new log4Net, e.g.: <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net, Version=1.2.11.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a" /> ...as well as doing the above and installing the new assembly into the GAC. Same error occurs. Where the heck is IIS/ASP.Net storing the old version info so I can replace it for this assembly? Thanks! -Pete