Cefsharp didn't start on Client Machine?

1.3k Views Asked by At

What to add with .net 4.5.1, Visual C++ 2012 Redistribution inorder to make cefsharp work on Client machine?.

I installed both .net 4.5.1, Visual C++ 2012 Redistribution package and the dlls

libcef.dll
icudt.dll
CefSharp.dll
CefSharp.WinForms.dll

are all present, the cefsharp form didn't open up. Its showing exception "Could not load file or assembly cefsharp.dll".

I have tried installing Visual C++ 2008,2010,2012 versions too. But it still didn't show up.

1

There are 1 best solutions below

0
On

If you have this same problem you need to use the release dll's.

The C++ dll's that were compiled as Debug use the debug runtime which is not available on a client machine. That's why it fails on the client machines and runs fine in the development environment.

enter image description here

Set the solution configuration to Release and then re-compile the solution to get the release dll's.

Make sure you use all of the following release dependencies:

  • CefSharp.dll
  • CefSharp.Core.dll
  • CefSharp.BrowserSubprocess.exe
  • CefSharp.BrowserSubprocess.Core.dll