Which DLL or component is needed for doing what ?

3,384 views
Skip to first unread message

Dita A Subrata

unread,
Jun 26, 2012, 11:50:56 PM6/26/12
to cefs...@googlegroups.com
I saw GitHub for Windows just use libcef.dll, icudt.dll, locales folder, and resources folder. I just want to use to designing html. Which dll or folder should I include in my project ?

anthony taranto

unread,
Jun 30, 2012, 2:40:12 PM6/30/12
to cefs...@googlegroups.com
I am not clear on what you mean by "designing html". CefSharp provides either a WPF or WinForms browser control that you can embed in your Windows application.

At minimum, you will need to place the following files in the same directory as your .exe (or otherwise configure your application to load them):

- libcef.dll
- icudt.dll
- CefSharp.dll
- One of the following 2 dlls: CefSharp.WinForms.dll OR CefSharp.WPF.dll

You then need to initialize CEF with "PackLoadingDisabled = true", using code similar to the following:

var settings = new CefSharp.Settings
{
    PackLoadingDisabled = true,
};
if (CEF.Initialize(settings))
{
    // instantiate your WebView here
}

If you want to enable chromium's developer tools, you will need to add these files and set PackLoadingDisabled = false (which is the default value):

- chrome.pak
- locales (directory. must contain en-US.pak at minimum)

The following files are optional and are used for audio, video, and WebGL:

- avcodec-54.dll
- avformat-54.dll
- avutil-51.dll
- libEGL.dll
- libGLESv2.dll

Akinz

unread,
Jul 27, 2012, 2:48:01 PM7/27/12
to cefs...@googlegroups.com
Please I still need clarification on how to go about this

anthony taranto

unread,
Jul 27, 2012, 3:05:37 PM7/27/12
to cefs...@googlegroups.com
What specifically do you not understand? In the simplest case, you
need to place some or all of these files/folders in the same directory
as your .exe before running your .exe.
> --
> You received this message because you are subscribed to the Google Groups
> "CefSharp" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/cefsharp/-/JUWGt6nucqcJ.
>
> To post to this group, send email to cefs...@googlegroups.com.
> To unsubscribe from this group, send email to
> cefsharp+u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/cefsharp?hl=en.

richard Boyewa

unread,
Jul 27, 2012, 5:25:57 PM7/27/12
to cefs...@googlegroups.com
I have not been able to create a windows application with cef, the app crashes during debugging and it does not lunch at all.


Regards

anthony taranto

unread,
Jul 27, 2012, 5:39:36 PM7/27/12
to cefs...@googlegroups.com
Sounds like you don't have the correct files in place. Are you
building from git master or using the binary release download?

richard Boyewa

unread,
Jul 27, 2012, 5:48:41 PM7/27/12
to cefs...@googlegroups.com
I am using binaries.

anthony taranto

unread,
Jul 27, 2012, 5:49:51 PM7/27/12
to cefs...@googlegroups.com
Can you please paste a listing of the files and the folders in the
directory that contains the .exe you are tring to run?

richard Boyewa

unread,
Jul 27, 2012, 5:55:53 PM7/27/12
to cefs...@googlegroups.com
CefSharp.dll
CefSharp.WinForm.dll

anthony taranto

unread,
Jul 27, 2012, 6:52:44 PM7/27/12
to cefs...@googlegroups.com
Please read this message carefully: https://groups.google.com/d/msg/cefsharp/sgQY_9omyd4/mRQYSCEPePkJ

At minimum, you will also need libcef.dll and libicudt.dll in that directory, and set PackLoadingDisabled = true.

richard Boyewa

unread,
Jul 28, 2012, 9:20:36 AM7/28/12
to cefs...@googlegroups.com
Where can I put the code below?



You then need to initialize CEF with "PackLoadingDisabled = true", using code similar to the following:

var settings = new CefSharp.Settings
{
    PackLoadingDisabled = true,
};
if (CEF.Initialize(settings))
{
    // instantiate your WebView here
}


Regards




On Fri, Jul 27, 2012 at 11:52 PM, anthony taranto <anthony...@gmail.com> wrote:
Please read this message carefully: https://groups.google.com/d/msg/cefsharp/sgQY_9omyd4/mRQYSCEPePkJ

At minimum, you will also need libcef.dll and libicudt.dll in that directory, and set PackLoadingDisabled = true.

--
You received this message because you are subscribed to the Google Groups "CefSharp" group.
To view this discussion on the web visit https://groups.google.com/d/msg/cefsharp/-/BmMkbvJqkhsJ.

richard Boyewa

unread,
Jul 28, 2012, 2:49:17 PM7/28/12
to cefs...@googlegroups.com
 I got it working :D

anthony taranto

unread,
Jul 28, 2012, 5:19:25 PM7/28/12
to cefs...@googlegroups.com

I always believed in you.

richard Boyewa

unread,
Jul 28, 2012, 5:34:58 PM7/28/12
to cefs...@googlegroups.com
Thanks a billion times. Do you have any info on indexedDB?

Michael DeRosa

unread,
Jan 30, 2013, 12:28:57 AM1/30/13
to cefs...@googlegroups.com
How did you get this working? I tried following these steps and get a crash everytime I try using anything from the CefSharp dll. 

"An unhandled exception of type 'System.Windows.Markup.XamlParseException' occurred in PresentationFramework.dll
Additional information: 'The invocation of the constructor on type 'DerosmCefSharpTest.MainWindow' that matches the specified binding constraints threw an exception.' Line number '3' and line position '9'."

anthony taranto

unread,
Jan 30, 2013, 1:16:37 PM1/30/13
to cefs...@googlegroups.com
That's pretty clearly a problem with your xaml. Are you trying to add the browser control in xaml? If so, try adding it from code and see if that works.

--Anthony

To unsubscribe from this group and stop receiving emails from it, send an email to cefsharp+u...@googlegroups.com.

To post to this group, send email to cefs...@googlegroups.com.

Michael DeRosa

unread,
Jan 30, 2013, 1:22:16 PM1/30/13
to cefs...@googlegroups.com
The xaml doesn't have any references to CefSharp. In mainwindow.xaml.cs I added the following code to MainWindow()

var settings = new CefSharp.Settings
            {
                PackLoadingDisabled = true,
            };
            if (CEF.Initialize(settings))
            {
                WebView view = new WebView();
                mainGrid.Children.Add(view);
            }

Code crashes when that is in place, but runs fine when that is removed (app runs and displays the blank window since there's no other ui in place).

anthony taranto

unread,
Jan 30, 2013, 1:25:29 PM1/30/13
to cefs...@googlegroups.com
What files do you have in your ouput/exe directory?

Michael DeRosa

unread,
Jan 30, 2013, 1:29:40 PM1/30/13
to cefs...@googlegroups.com
In bin/debug I have:
CefSharp.dll
CefSharp.Wpf.dll
icudt.dll
libcef.dll 
 
All taken from CefSharp-0.12.7z

anthony taranto

unread,
Jan 30, 2013, 1:30:58 PM1/30/13
to cefs...@googlegroups.com
Those appear to be the correct files. I'm not sure what your problem is.

Michael DeRosa

unread,
Jan 30, 2013, 1:37:45 PM1/30/13
to cefs...@googlegroups.com
Would it help if I uploaded a zip of the project?

Michael DeRosa

unread,
Jan 30, 2013, 2:09:38 PM1/30/13
to cefs...@googlegroups.com
I was able to get another test project running, where I implemented several of the files from CesSharp.Example. I was under the impression that this isn't necessary though. Is that the case?
Also I was getting errors about mixed mode assembly, but this seemed to fix the issue: http://stackoverflow.com/questions/6425707/mixed-mode-assembly-is-built-against-version-v2-0-50727-of-the-runtime

Also I noticed in a test project posted in this group that they initialize the view from App.xaml.cs and not MainWindow.xaml.cs. I tried doing that in my first sample app (the one without implementing CesSharp.Example) and am now getting errors abouta bad image format.

An unhandled exception of type 'System.BadImageFormatException' occurred in DerosmCefSharpTest.exe

Additional information: Could not load file or assembly 'CefSharp, Version=0.12.4596.50, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.

Strange...

anthony taranto

unread,
Jan 30, 2013, 2:11:50 PM1/30/13
to cefs...@googlegroups.com
I don't understand what you mean when you say this: "I implemented several of the files from CesSharp.Example"

--Anthony

Michael DeRosa

unread,
Jan 30, 2013, 2:14:42 PM1/30/13
to cefs...@googlegroups.com
I didn't want to have to use CesSharp.Example.dll as the test project posted in this group used. So I copied/slightly changed implementations of BoundObject, ExamplePresenter, and IExampleView.

Mat

unread,
Feb 20, 2013, 3:07:02 AM2/20/13
to cefs...@googlegroups.com
Hi i am also facing the same problem . Did you able to solve it ?? please explain how you overcomes this error?
Message has been deleted

Michael DeRosa

unread,
Feb 20, 2013, 9:14:36 AM2/20/13
to cefs...@googlegroups.com
Check out this site: http://labs.awesomium.com/using-awesomiumsharp/
They have a similar set of instructions to CefSharp and it actually helped verify what I had been doing to get this to work. Some of the issues they talk about are common to chromium (making sure you set the project properties of the DLLs to copy to output directory). 

Other than that, if you can get one of the test projects working, you can get a better idea of how CefSharp works. From there you can modify and play around with it to get what you need.

Per Lundberg

unread,
Aug 1, 2013, 4:31:52 AM8/1/13
to cefs...@googlegroups.com
FWIW: I added a new wiki page for a FAQ, where I listed this question ("what files are needed to run a CefSharp-based app"). You may find it here:

Best regards,
Per
Reply all
Reply to author
Forward
0 new messages