Skip to content
This repository has been archived by the owner on Jan 27, 2019. It is now read-only.

FileLoadException: Could not load file or assembly #675

Open
mridah opened this issue Sep 12, 2018 · 2 comments
Open

FileLoadException: Could not load file or assembly #675

mridah opened this issue Sep 12, 2018 · 2 comments

Comments

@mridah
Copy link

mridah commented Sep 12, 2018

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:
- packed_file.exe
- System.Data.SQLite.dll

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 ? @yck1509 @jbeshir

@JuanAdamuz
Copy link

I have the same issue but with Newtonson Json dll

@Bortfive
Copy link

I have the same error with other json dll

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants