Could not load file or assembly CefSharp #4352
Replies: 1 comment 12 replies
-
In future please use Discussions to ask support related questions. Looks like you've already asked this at https://stackoverflow.com/questions/74927986/could-not-load-file-or-assembly-cefsharp
Did you check your installer contains all the required files? https://github.com/cefsharp/CefSharp/blob/master/NuGet/PackageReference/Readme.txt#L25 There's also a list at https://github.com/cefsharp/CefSharp/wiki/Output-files-description-table-%28Redistribution%29 Have you checked the installation folder to confirm that the files are actually there? This will likely be easier than digging through the msi.
Did you set a RuntimeIdentifier as per the post install instructions? If you've installed
If you've set a |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a WPF net core project and it's using CEF ChromiumWebBrowser, in the debug mode it run ok. Then I create Setup Project to make file msi file for client but it has error "File 'CefSharp.Core.Runtime.dll' of project output 'Publish Items from CommunicateWithWeb (Active)' targeting 'x64' is not compatible with the project's target platform 'x86'" while building. After I change TargetPlatform of Setup Project to x64, build is successfully. Then I run msi file to install app in my PC but I can't open this app by clicking exe file. I open event viewer and error is like picture below.
I tried to installed Orca and see that CefSharp assembly is already included in .msi file as picture below
Anyone can help me this problem? Any comment is also important for me. Thank you.
Note: I use VS2022 64bit, Win10 64bit, Net 6.0, CefSharp.WPF.NETCore ver 108.4.130. I also install MS Visual C++ 2015-2022 Redistributable (both x64 and x86) ver 14.34.31931. I set platform = "x64" when build Setup Project in Release mode
Beta Was this translation helpful? Give feedback.
All reactions