cefsharp / Questions-and-Support

Use this repository to ask CefSharp specific questions
BSD 3-Clause "New" or "Revised" License
0 stars 2 forks source link

Can't run this when select another compile output #62

Closed lukasrmattos closed 3 years ago

lukasrmattos commented 3 years ago

Bug Report

Delete this line and everything above, and then fill in the details below.

I Receive System.BadImageFormatException.Assembly "CefSharp.Wpf, but all files in wiki are there

If I change the output back to bin/debug its run fine. If I copy all content from bin/debug and put in any folder outside it (the exactly same files), I still receive this. I can just run it if inside debug folder. Any leads? I don't think it is any dll or file missing cause I'm copying it to test in my folder.

amaitland commented 3 years ago

What version of visual studio are you using? Are you targeting. Net Core?

lukasrmattos commented 3 years ago

What version of visual studio are you using? Are you targeting. Net Core?

2019, Net Framework 4.8.

So, I discovered that one of dlls inside my output when in same root folder of Cefsharp make cefsharp not to work.

Any leads why cefsharp cant load itself when one of those dlls are in same folder?

http://www.mediafire.com/file/f98yvwe6c8gqf3g/DLLS.rar/file

I will run winmerge to get less candidates and I update here.

lukasrmattos commented 3 years ago

The dll dbghelp.dll in my folder made Cefsharp not work. I don't need this dll but for one reason it is on the game folder I'm using (game does not need this too).

I'm closing it but strange behavior

amaitland commented 3 years ago

Chromium uses dbghelp to create crash dumps as part of it's crashpad error handling. DbgHelp.dll ships with windows, that is the version chromium will use by default. It is not a stated dependency as it is included in all supported versions of Windows.

Possibly the version you have in your game folder is too old or is the incorrect bitness. Unfortunately .Net throws a misleading System.BadImageFormatException when it is unable to load a dll