An unhandled exception of type 'System.BadImageFormatException' occurred in mscorlib.dll

An unhandled exception of type 'System.BadImageFormatException' occurred in mscorlib.dll

Additional information: 파일이나 어셈블리 'System.Data.SQLite, Version=1.0.89.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139' 또는 여기에 종속되어 있는 파일이나 어셈블리 중 하나를 로드할 수 없습니다. 프로그램을 잘못된 형식으로 로드하려고 했습니다.

 C#에서 SQLite를 사용하기 위해 System.Data.SQLite를 R&D중 위와 같은 오류가 발생했습니다.

 진행중인 프로젝트의 Build -> Platform target이 Any CPU로 되어 있다면 DLL에 맞는 버전으로 변경을 해줍니다.

 System.Data.SQLite 이외에도 이런 이슈가 있는 것 같네요. 또한 Managed C++ DLL 에서 발생하는 오류인 듯 합니다.

댓글

이 블로그의 인기 게시물

'xxx.exe' 프로그램을 시작할 수 없습니다. 지정된 파일을 찾을 수 없습니다.

goorm IDE에서 node.js 프로젝트로 Hello World Simple Server 만들어 띄워보기

애드센스 수익을 웨스턴 유니온으로 수표대신 현금으로 지급 받아보자.