YosiFZ
YosiFZ

Reputation: 7890

WinForm CefSharp

I just tried to install CefSharp on a new winForm application, i install the latest version with Nuget and done all the steps by this article: https://ourcodeworld.com/articles/read/173/how-to-use-cefsharp-chromium-embedded-framework-csharp-in-a-winforms-application

Running on : "Any CPU"
Visual Studio 2013
CefSharp 69.0.0

When i run the application i get this error:

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.

This is the code:

var settings = new CefSettings();
Cef.Initialize(settings, performDependencyCheck: false, browserProcessHandler: null);

Any idea what is the problem?

EDIT This is the app.config file of my project:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <startup> 
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
    </startup>
    <runtime>
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
            <probing privatePath="x86"/>
        </assemblyBinding>
    </runtime>
</configuration>

Upvotes: 0

Views: 1078

Answers (2)

Shane Burke
Shane Burke

Reputation: 80

In our case this happened when we failed to install the Visual C++ runtime.

Upvotes: 1

Alireza Memarian
Alireza Memarian

Reputation: 214

In app.config file , please check dependentAssembly segment for CelfSharp. If it has any entry, make sure that the version of added reference be in valid range.

Upvotes: 0

Related Questions