I am using CefSharp37.0.0 in my WPF application.
When ChromiumWebBrowser is loading I want to keep UI thread free, So I create ChromiumWebBrowser object in the loaded event of UserControl. After ChromiumWebBrowser is created I add it to the UserControl by *.Children.Add() method.
I call the ShowDevTools method to show the devtools but it is white and has no elements in it.
I follow the Wpf.Example to add it in XAML file and try again, it turns out perfect.
I want to know what happened when i create it in background and add it in UI thread.
In debug.log file, there is some information like these.
[1226/175123:WARNING:backend_impl.cc(1497)] Messed up entry found.
[1226/175123:WARNING:backend_impl.cc(1785)] Destroying invalid entry.
[1226/175131:WARNING:resource_bundle.cc(286)] locale_file_path.empty()
[1226/175131:ERROR:renderer_main.cc(227)] Running without renderer sandbox
[1226/175131:ERROR:content_client.cc(148)] No data resource available for id 22000
[1226/175131:WARNING:url_request_job_manager.cc(101)] Failed to map: chrome-devtools://devtools/devtools.html
[1226/175137:WARNING:resource_bundle.cc(373)] Unable to load image with id 5830
[1226/175131:ERROR:content_client.cc(148)] No data resource available for id 22000
Looks like it can't find the .pak files, have you disabled pack loading? Are the .pak files being copied to your bin directory?
Basic list of pack files is here
https://github.com/cefsharp/cef-binary/blob/master/README.txt#L100
@zhuangperola Did you sort this one out?
@amaitland I am so sorry for my mistake.
As you said, i do disabled pack loading and make dev tools not work.
@zhuangperola No problem, glad it's resolved :+1:
Most helpful comment
Looks like it can't find the
.pakfiles, have you disabled pack loading? Are the.pakfiles being copied to your bin directory?Basic list of pack files is here
https://github.com/cefsharp/cef-binary/blob/master/README.txt#L100