The type initializer for 'CrystalDecisions.Shared.SharedUtils' threw an exception. ---> System.IO.FileLoadException: 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.
I am running VS 2019 with a CR control on my form to display reports. Works fine on my local PC but when I deploy it to another PC, I get the above error when I try to access the form. Changing the version of log4net to the latest version or eliminating log4net from the references did not help. Compiles and publishes fine except for one publishing warning on my local PC --
warning MSB3155: Item 'SAP.CrystalReports14.NET.2.0' could not be located in 'C:\Program Files (x86)\Microsoft SDKs\ClickOnce Bootstrapper\'
But the above is just a publishing warning.
Both below installed on my local PC:
SAP CR Runtime for .net (64) -- 13.0.20.2399
SAP CR Version for VS -- 13.0.20.2399