XenocodeRCE / neo-ConfuserEx

Updated ConfuserEX, an open-source, free obfuscator for .NET applications
http://yck1509.github.io/ConfuserEx/
Other
756 stars 89 forks source link

FileLoadException: Could not load file or assembly #19

Closed mridah closed 5 years ago

mridah commented 6 years ago

I'm current;y using https://github.com/yck1509/ConfuserEx

I have a program with mostly managed DLL's and one native DLL ( System.Data.SQLite ). I'm using the Packer/Compressor setting to pack all managed DLLs and exe file into a single exe.

I'm deploying the native SQLite dll as a separate binary.

So my file structure looks like:

It works fine on Windows 7, Windows 8.1, but on Windows 10 ( Build 10240 ) ( I have just tested on this build of windows 10 on 2 separate laptops ) it gives the following error:

System.IO.FileLoadException: Could not load file or assembly 'System.Data.SQLite, Version=1.0.88.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) File name: 'System.Data.SQLite, Version=1.0.88.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139' at ‪‎‍‫‬‎‍‍‍‮‏‪​​‫​‪‪​‭‎​‭‮‪‮.‫‫‭‮‮‬‪‫‍‎‌‮‮‪‌‬‌‭‏​‌‏​‍‌‮() at -------------‫‌‌‬‎‫‬‫‬‎​‪‌‮‫‎‫‮‪‎‫‎‮()

How can I resolve this issue ? @XenocodeRCE

XenocodeRCE commented 6 years ago

You need to be sure the packed file got enough time to reach the dll in the same folder