xmichal7
xmichal7

Reputation: 9

Why my WinForm app not work in release mode?

I have problem with my WinForm app. Debug mode works fine, but when I try to run my application into release mode I have an error:

System.BadImageFormatException HResult=0x8007000B Message = Unable to create file or assembly key 'SystemData.SQLite, Version = 1.0.76.0, Culture = neutral, PublicToken = db937bc2d44139' or one of its versions. An attempt was made for a program in an invalid format.

Upvotes: 0

Views: 423

Answers (1)

Rene
Rene

Reputation: 59

Assuming you are using Visual Studio my first guess would be a x86/x64 mismatch between debug and release builds.

Are you using Nuget to get SQLLite?

Upvotes: 1

Related Questions