Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Simple CefSharp application is missing files at runtime

Tags:

.net

cefsharp

This is probably a very simple question. I copied the example CefSharp MinimalExample.WinForms project to a new directory and renamed to WinProxy. It builds ok. When I run it I get;

An unhandled exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll Additional information: Could not load file or assembly 'CefSharp.Core.dll' or one of its dependencies. The specified module could not be found.

Comparing with the example directory, I am missing a number of files listed here https://github.com/cefsharp/CefSharp/wiki/Output-files-description-table-(Redistribution)

I do have CefSharp.Core.dll, CefSharp.WinForms.dll and CefSharp.dll which were all referenced in the example project.

How do I get the rest? I tried copying them over and rebuilding but I get;

An unhandled exception of type 'System.IO.FileLoadException' occurred in mscorlib.dll Additional information: A procedure imported by 'CefSharp.Core.dll' could not be loaded.

Thanks.

like image 542
P Hemans Avatar asked May 13 '26 18:05

P Hemans


1 Answers

Install:

  • Visual C++ Redistributable Packages for Visual Studio 2013

Check:

  • CefSharp Version 49.0.1 require Framework 4.5.1.
  • CefSharp Version 51.0.0 require Framework 4.5.2 or later.

Compile Solution:

  • x86 or x64
like image 141
Adolfo Alejandro Araya Avatar answered May 16 '26 12:05

Adolfo Alejandro Araya



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!