log4net version mismatch?
Posted: Tue Aug 05, 2008 10:41 am
Hi all,
We had a build that was running just fine until it was deployed to a production server. I have come in to help figure this thing out, and when I built the app on my development machine I get this error as well.
We are using the Avalara tax provider and have built the class per the instructions in this thread:
viewtopic.php?f=42&t=5935.
Essentially what is happening is when the code enters our Calculate function on our tax provider class, the first thing it does is to try to create a new instance of TaxSvc, which throws the following error and exits into the exception handler block:
System.IO.FileLoadException was unhandled by user code
Message="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)"
Source="AvalaraTaxProvider"
FileName="log4net, Version=1.2.0.30714, Culture=neutral, PublicKeyToken=b32731d11ce58905"
FusionLog="=== Pre-bind state information ===\r\nLOG: User = NT AUTHORITY\\NETWORK SERVICE\r\nLOG: DisplayName = log4net, Version=1.2.0.30714, Culture=neutral, PublicKeyToken=b32731d11ce58905\n (Fully-specified)\r\nLOG: Appbase = file:///C:/inetpub/wwwroot/AutoClub/\r\nLOG: Initial PrivatePath = C:\\inetpub\\wwwroot\\AutoClub\\bin\r\nCalling assembly : Avalara.AvaTax.Adapter, Version=4.13.0.0, Culture=neutral, PublicKeyToken=34e4ef76d6267205.\r\n===\r\nLOG: This bind starts in default load context.\r\nLOG: Using application configuration file: C:\\inetpub\\wwwroot\\AutoClub\\web.config\r\nLOG: Using host configuration file: C:\\Windows\\Microsoft.NET\\Framework64\\v2.0.50727\\Aspnet.config\r\nLOG: Using machine configuration file from C:\\Windows\\Microsoft.NET\\Framework64\\v2.0.50727\\config\\machine.config.\r\nLOG: Post-policy reference: log4net, Version=1.2.0.30714, Culture=neutral, PublicKeyToken=b32731d11ce58905\r\nLOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/Temporary ASP.NET Files/autoclub/7e8e2cd2/b255792d/log4net.DLL.\r\nLOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/Temporary ASP.NET Files/autoclub/7e8e2cd2/b255792d/log4net/log4net.DLL.\r\nLOG: Attempting download of new URL file:///C:/inetpub/wwwroot/AutoClub/bin/log4net.DLL.\r\nWRN: Comparing the assembly name resulted in the mismatch: Revision Number\r\nERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.\r\n"
StackTrace:
at AvalaraTaxProvider.MyTaxClass.Calculate(Basket basket)
at CommerceBuilder.Taxes.TaxCalculator.Calculate(Basket basket) in C:\Users\Christopher Burns\Documents\Visual Studio 2008\Projects\CommerceBuilder\Taxes\TaxCalculator.cs:line 54
at CommerceBuilder.Orders.Basket.Recalculate() in C:\Users\Christopher Burns\Documents\Visual Studio 2008\Projects\CommerceBuilder\Orders\Basket.cs:line 955
at ConLib_Basket.Page_PreRender(Object sender, EventArgs e) in c:\inetpub\wwwroot\AutoClub\ConLib\Basket.ascx.cs:line 191
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Control.OnPreRender(EventArgs e)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
I have gone as far as finding version 1.2.03x of log4net.dll on the Web, and tried building with that, but then it complained about wanting version 1.2.10.
Bear in mind that I am building on a 64-bit machine, but I believe the same problem arises on the production server which is 32-bit, running Windows Server 2K3.
Can anyone shed some light on this?
Any help greatly appreciated!
Cheers,
Chris
We had a build that was running just fine until it was deployed to a production server. I have come in to help figure this thing out, and when I built the app on my development machine I get this error as well.
We are using the Avalara tax provider and have built the class per the instructions in this thread:
viewtopic.php?f=42&t=5935.
Essentially what is happening is when the code enters our Calculate function on our tax provider class, the first thing it does is to try to create a new instance of TaxSvc, which throws the following error and exits into the exception handler block:
System.IO.FileLoadException was unhandled by user code
Message="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)"
Source="AvalaraTaxProvider"
FileName="log4net, Version=1.2.0.30714, Culture=neutral, PublicKeyToken=b32731d11ce58905"
FusionLog="=== Pre-bind state information ===\r\nLOG: User = NT AUTHORITY\\NETWORK SERVICE\r\nLOG: DisplayName = log4net, Version=1.2.0.30714, Culture=neutral, PublicKeyToken=b32731d11ce58905\n (Fully-specified)\r\nLOG: Appbase = file:///C:/inetpub/wwwroot/AutoClub/\r\nLOG: Initial PrivatePath = C:\\inetpub\\wwwroot\\AutoClub\\bin\r\nCalling assembly : Avalara.AvaTax.Adapter, Version=4.13.0.0, Culture=neutral, PublicKeyToken=34e4ef76d6267205.\r\n===\r\nLOG: This bind starts in default load context.\r\nLOG: Using application configuration file: C:\\inetpub\\wwwroot\\AutoClub\\web.config\r\nLOG: Using host configuration file: C:\\Windows\\Microsoft.NET\\Framework64\\v2.0.50727\\Aspnet.config\r\nLOG: Using machine configuration file from C:\\Windows\\Microsoft.NET\\Framework64\\v2.0.50727\\config\\machine.config.\r\nLOG: Post-policy reference: log4net, Version=1.2.0.30714, Culture=neutral, PublicKeyToken=b32731d11ce58905\r\nLOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/Temporary ASP.NET Files/autoclub/7e8e2cd2/b255792d/log4net.DLL.\r\nLOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/Temporary ASP.NET Files/autoclub/7e8e2cd2/b255792d/log4net/log4net.DLL.\r\nLOG: Attempting download of new URL file:///C:/inetpub/wwwroot/AutoClub/bin/log4net.DLL.\r\nWRN: Comparing the assembly name resulted in the mismatch: Revision Number\r\nERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.\r\n"
StackTrace:
at AvalaraTaxProvider.MyTaxClass.Calculate(Basket basket)
at CommerceBuilder.Taxes.TaxCalculator.Calculate(Basket basket) in C:\Users\Christopher Burns\Documents\Visual Studio 2008\Projects\CommerceBuilder\Taxes\TaxCalculator.cs:line 54
at CommerceBuilder.Orders.Basket.Recalculate() in C:\Users\Christopher Burns\Documents\Visual Studio 2008\Projects\CommerceBuilder\Orders\Basket.cs:line 955
at ConLib_Basket.Page_PreRender(Object sender, EventArgs e) in c:\inetpub\wwwroot\AutoClub\ConLib\Basket.ascx.cs:line 191
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Control.OnPreRender(EventArgs e)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
I have gone as far as finding version 1.2.03x of log4net.dll on the Web, and tried building with that, but then it complained about wanting version 1.2.10.
Bear in mind that I am building on a 64-bit machine, but I believe the same problem arises on the production server which is 32-bit, running Windows Server 2K3.
Can anyone shed some light on this?
Any help greatly appreciated!
Cheers,
Chris