Jino Shaji
Jino Shaji

Reputation: 1105

There is an exception in Crystal Reports on client machine

I got the error mentioned as below on client machine. For some systems it is working well but for some I get the error mentioned as below:

See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.

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.

Upvotes: 0

Views: 1706

Answers (1)

user7166163
user7166163

Reputation:

  • It could be useful to someone: if you have the option to do it, go to IIS and set the Application Pool to 32 bit applications only.

That made the trick for me.

  • (Of course, your application could be made to run only on 64 bit. In that case, I think the installing of the 64 bit redistributable of CrystalReports should solve the issue)

Upvotes: 1

Related Questions