CefSharp 3 WPF project didn't run in client machine

ε祈祈猫儿з 提交于 2019-12-24 13:42:04

问题


I need to run a CefSharp WPF project in a Client machine. The project works on development machine. But did not run in the Client machine.

Here are some findings which I found:

  1. When I install the Visual Studio 2013 to client machine and run the application, it works perfectly.
  2. Application did not run when install .NetFramework 4.5 and Microsoft Visual C++ 2012 redistributable x86 package to client machine

(As proposed by many developers in Stack Over Flow for same problem, I have installed Microsoft Visual C++ 2012 redistributable x86 package also. But it didn't work.)

I have included the following dll's to debug folder.

  • CefSharp.BrowserSubprocess.Core.dll
  • CefSharp.Core.dll
  • CefSharp.dll
  • CefSharp.Example.dll
  • CefSharp.Wpf.dll
  • d3dcompiler_43.dll
  • d3dcompiler_47.dll
  • ffmpegsumo.dll
  • GalaSoft.MvvmLight.dll
  • GalaSoft.MvvmLight.Extras.dll
  • GalaSoft.MvvmLight.Platform.dll
  • icudt.dll
  • libcef.dll
  • libEGL.dll
  • libGLESv2.dll
  • Microsoft.Practices.ServiceLocation.dll
  • msvcp110
  • msvcr110
  • vccorlib110
  • pdf.dll

I included following files also to debug folder.

  • locales folder
  • cef.pak
  • cef_100_percent.pak
  • cef_200_percent.pak
  • devtools_resources.pak
  • icudtl.dat
  • CefSharp.BrowserSubprocess.exe

But no luck.

When I run the application It shows an error message as "CefSharp.BrowserSubprocess has stopped working".

I searched the google as well as stackoverflow. But unable to find a solution.

Please find the debug log which I got from debug.txt file in the client machine,

[0702/041548:VERBOSE1:pref_proxy_config_tracker_impl.cc(148)] 0B1782D0: set chrome proxy config service to 0D3A2260 [0702/041548:VERBOSE1:pref_proxy_config_tracker_impl.cc(277)] 0B1782D0: Done pushing proxy to UpdateProxyConfig [0702/041551:VERBOSE1:webrtc_internals.cc(55)] Could not get the download directory. [0702/041601:VERBOSE1:statistics_recorder.cc(294)] Collections of all histograms Histogram: AsyncDNS.ConfigChange recorded 1 samples, average = 1.0 (flags = 0x1)

Can anyone know how to solve this problem? If yes, please help me to solve this problem.

Thanks in advance.


回答1:


Finally I solve the issue. As most of the developer said, we need to install Microsoft Visual C++ 2012 redistributable x86 package as well as relevant dll's (See question for details). The mistake which I did was, I included the dll's which are in the Debug Folder. But if we run the application in release mode we need to include the dll's which are in release folder. Dll's in the Debug folder and Release folder are not same. I hope this will help to someone else in future.



来源:https://stackoverflow.com/questions/31184802/cefsharp-3-wpf-project-didnt-run-in-client-machine

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