'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.
Solution 1:[1]
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?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Rene |
