-2

Possible Duplicate:
System.BadImageFormatException “invalid format” when trying to install service with installutil.exe

When I install my Windows Service App, I get the following exception:

Error 1001. exception occurred while initializing the installation : System.BadImageFormatException: could not load file or assembly .....file.exe or one of its dependencies. An attempt was made to load a program with an incorrect format.

Community
  • 1
  • 1
Tarek Saied
  • 6,482
  • 20
  • 67
  • 111

1 Answers1

2

This means that one of your assemblies is compiled for 64-bit mode and tries to load a 32-bit one, or vise versa.

Picrofo Software
  • 5,475
  • 3
  • 23
  • 37
vyakhir
  • 1,714
  • 2
  • 17
  • 21