Replies: 2 comments 3 replies
-
CEF doesn't provide any error information, we only know that the call to CefInitialize failed. This is a limitation of the Chromium embedded framework(CEF). You'll need to check the CEF log file see https://github.com/cefsharp/CefSharp/wiki/Trouble-Shooting#log-file You are likely missing files from your bin folder, see https://github.com/chromiumembedded/cef/blob/cae194f493328a9890b27533ce1dc661e0d4b042/tools/distrib/win/README.redistrib.txt Whilst CEF lists components as optional I expect you'll need to include most of the pak files. Once you have an error from the log you can search on https://magpcss.org/ceforum/index.php (The CEF support forum) to see what's required, I personally suggest including all of the resources excluding any locales that aren't relevant. Using CefSharp via the Nuget packages is the only supported option, if you choose to manually package CEF then you'll need to deal with the complexities yourself. |
Beta Was this translation helpful? Give feedback.
-
@amaitland : thank you for important info! I missed "init" requirement:
But even that didn't help even a bit. Why? Log file wasn't created! I run app, SAME exception happen and... nothing - no any log. |
Beta Was this translation helpful? Give feedback.
-
Hi! I have Win7x64, FW4.8, VS2019
I tried to create simple example(AnyCPU + not "prefer 32 bits"), but w/o any clownish nugets - we have strict policy to not deal with untested updates.
I unpacked all nuget packages and got x64 DLLs. Then I referenced DLLs in my WPF project + added necessary native libs (which come with cef.redist.x64.88.2.4.nupkg ). XAML code is quite simple:
And when I start application, got this error:
For me it's quite strange to see so unprofessional, obscure reports like "failed" - I have no idea what exactly going wrong.
Of course I tried to inspect
ChromiumWebBrowser.cs:line 530
, but found nothing, but empty line:Hardly assigning handler was reason, but anyway I cannot debug it.
This is list of binaries I got after build (and added from redist):
I debugged everything I could (I had no necessary files), but now it's complete set of binaries and I have no idea WHAT ELSE can be wrong. So I need help please what to do. Ideally if people takes "spaghetti", which produces error and UNHIDE internal problems - no any reason to hide it even from final user! We always must know what's wrong.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions