Cefsharp didn't start on Client Machine?

浪子不回头ぞ 提交于 2019-12-14 01:12:13

问题


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:


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.

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


来源:https://stackoverflow.com/questions/23780653/cefsharp-didnt-start-on-client-machine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!