Hi at all,
I have problem on Crystal Report and log4net.
It happens when I deploy the Web applications on the server.
I'm using Visual studio 2013 update 2, and I'm using log4net 2.0.3 (1.2.13) and I'm using CRforVS2013_13_0_10, the last.
When I deploy my application on the target machine, where I have also installed the runtime 64 bit for Crystal Report, I found this error:
ERROR 2014-07-31 16:26:42,721 1528053ms 8Euro - IP:192.168.0.38 - HOST:192.168.0.38 DumpWebRequest - ERROR: Exception of type 'System.Web.HttpUnhandledException' was thrown.
Exception StackTrace: at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.pages_reportviewer_aspx.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
ERROR: The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception.
...
ERROR: Could not load file or assembly 'log4net, Version=1.2.13.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Exception StackTrace: at CrystalDecisions.Shared.SharedUtils..cctor()
ERROR: Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Not able to extract code, error:Value cannot be null.
Parameter name: source
Exception StackTrace:
On my local Visual studio it works, works fine.
But when I'm deploying on Server, 2008 win 64 bit, I found this error.
I've tried everything, I've installed also the runtime 64 bit on the target/server machine.
The problem is that the log4net is not registered in the windows\assembly directory on the target server ? Do I have to use the Gac util to register the log4net dll assembly ?
Please help me, It one day that I'm facing this error, but I'm not able to solve.
Regards
Vittorio