I'm using the CefSharp 53 minimal winform example based on CEF 2785, but I'm getting an error when I try to use CEF 2785 binaries that I compile myself.
My first question is, should copying the CEF binaries that I generate into my application folder work? Or am I missing a step?
If that is sufficient, then my second question is, does someone have a clue what's causing the error below? It seems to originate with the CLR.
Here is what does work out-of-the-box:
I can compile the minimum winform x86 example and publish with ClickOnce.
I can run the published project when I copy the CEF 2785 binaries that get installed by NuGet (in the packages\ folder) into my publish application folder.
I was able to generate the x86 binaries for CEF 2785 using these commands:
set CEF_USE_GN=1
set GN_DEFINES=is_official_build=true
python d:/cefbuild/automate-git.py --download-dir=d:/cefbuild/CEF2785 --branch=2785 --no-debug-build --minimal-distrib-only --no-update --force-distrib
This generated the binaries I need as two folders (Release\ and Resources\) inside the folder cef_binary_3.2785.1486.g8c4ba9f_windows32_minimal\.
Here is what does not work:
I copied those binaries from Release\ and Resources\ into my publish application folder, replacing the binaries from NuGet.
When I run the example I get the following error.
Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: CefSharp.MinimalExample.WinForms
Problem Signature 02: 1.0.0.0
Problem Signature 03: 585c54b0
Problem Signature 04: CefSharp.WinForms
Problem Signature 05: 53.0.0.0
Problem Signature 06: 57fafeda
Problem Signature 07: 60
Problem Signature 08: 1e
Problem Signature 09: System.InvalidOperationException
OS Version: 6.1.7601.2.1.0.256.48
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789