I have a C# console application that is deployed on client machines. While deploying in client machine I get System.TypeInitializationException.
In debug.log, I get the following errors:
Unable to locate required Cef/CefSharp dependencies:
Missing:CefSharp.BrowserSubprocess.exe
Missing:CefSharp.BrowserSubprocess.Core.dll
Missing:CefSharp.Core.dll
Missing:CefSharp.dll
Missing:icudtl.dat
Missing:libcef.dll
Executing Assembly Path:C:\myapp
The problem is that all files are present in the C:\myapp directory (as specified here). Therefore, I'm not sure why these files aren't being loaded up. Also msvcp120.dll, msvcr120.dll, vccorlib120.dll included in c:\myapp directory
I had the same issue. first I saw that the Cef.Initialize() function just don't work, so I enabled the performDependencyCheck option like this:
(According to this example https://github.com/cefsharp/CefSharp.MinimalExample/blob/master/CefSharp.MinimalExample.OffScreen/Program.cs)
and I saw I am missing some files.
Afterwards, the error kept showing up, even though I don't miss anything. so i disabled the performDependencyCheck option and it worked.(like this:
Hope it will help you.