Could not load file or assembly 'log4net

September 19, 2011 at 08:51:04
Specs: Windows 7
Hi...
I made a program with VB 2010 and its reports with crystal report and after I made the setup and install it and I try to run any report this error comes out ..... plz help on this one
((System.InvalidOperationException: An error occurred creating the form. See Exception.InnerException for details. The error is: The type initializer for 'CrystalDecisions.Shared.SharedUtils' threw an exception. ---> System.TypeInitializationException: The type initializer for 'CrystalDecisions.Shared.SharedUtils' threw an exception. ---> System.BadImageFormatException: Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. An attempt was made to load a program with an incorrect format.))

See More: Could not load file or assembly log4net

Report •


#1
September 19, 2011 at 11:19:44
BadImageFormatException, eh? Tough break. Try compiling explicitly for x86 or x64. If that doesn't work, some .NET import doesn't like some other .NET import.

How To Ask Questions The Smart Way


Report •
Related Solutions


Ask Question