문제

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.

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top