CefSharp 3 WPF项目没有在客户端机器上运行 [英] CefSharp 3 WPF project didn't run in client machine

查看:1160
本文介绍了CefSharp 3 WPF项目没有在客户端机器上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在客户机中运行CefSharp WPF项目。该项目在开发机器上工作。但是没有在客户机中运行。



以下是我发现的一些调查结果:


  1. 当我将Visual Studio 2013安装到客户端计算机并运行应用程序时,它的工作正常。

  2. 安装.NetFramework 4.5和Microsoft Visual C ++ 2012可重新分发x86时,应用程序没有运行包到客户端机器

(由于Stack Over Flow中的许多开发人员提出同样的问题,我已经安装了Microsoft Visual C ++ 2012可重新分发x86包装也不行,但没有起作用。)



我已经包含以下dll的调试文件夹。




  • 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。分机ras.dll

  • GalaSoft.MvvmLight.Platform.dll

  • icudt.dll

  • libcef.dll

  • libEGL.dll

  • libGLESv2.dll

  • Microsoft.Practices.ServiceLocation.dll

  • msvcp110

  • msvcr110

  • vccorlib110

  • pdf.dll



我还包括以下文件到调试文件夹。




  • locales文件夹

  • cef.pak

  • cef_100_percent.pak

  • cef_200_percent.pak

  • devtools_resources.pak

  • icudtl.dat

  • CefSharp.BrowserSubprocess.exe



但没有运气。



当我运行应用程序时,它会显示一条错误消息为CefSharp.BrowserSubprocess已停止工作 / p>

我搜索了google以及stackoverflow。但是无法找到解决方案。



请在客户端机器中找到我从debug.txt文件获得的调试日志


[0702/041548:VERBOSE1:pref_proxy_config_tracker_impl.cc(148)]
0B1782D0:将chrome代理配置服务设置为0D3A2260
[0702/041548:VERBOSE1: pref_proxy_config_tracker_impl.cc(277)]
0B1782D0:将代理推送到UpdateProxyConfig
[0702/041551:VERBOSE1:webrtc_internals.cc(55)]无法获取
下载目录。 [0702/041601:VERBOSE1:statistics_recorder.cc(294)]
所有直方图的集合直方图:AsyncDNS.ConfigChange
记录1个样本,average = 1.0(flags = 0x1)


有谁知道如何解决这个问题?如果是,请帮我解决这个问题。



提前感谢

解决方案

最后我解决了这个问题。正如大多数开发者所说,我们需要安装Microsoft Visual C ++ 2012可重新分发x86软件包以及相关的DLL(详见问题)。我所做的错误是我在Debug文件夹中包含了dll。但是如果我们在发布模式下运行应用程序,我们需要包含在release文件夹中的dll。 Debug文件夹和Release文件夹中的Dll不一样。我希望将来会有助于别人。


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.

解决方案

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.

这篇关于CefSharp 3 WPF项目没有在客户端机器上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆