CefSharp WPF错误 [英] CefSharp WPF Error

查看:97
本文介绍了CefSharp WPF错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

已使用CefSharp在WPF项目中使用Chrome Web浏览器。该版本按预期工作,但是发布后,收到的错误是:



对类型为'CefSharp.Wpf.ChromiumWebBrowser'的构造函数的调用匹配特定绑定约束的对象引发了异常。行号 24和行位置 15。 IsTerminate:True



已遵循此处的建议:



https://github.com/cefsharp/CefSharp/issues/2030



不幸的是,这没有产生任何结果,也请按照此处阅读:



https://github.com/cefsharp/cef-binary/blob/master/README.txt#L82



文件存在于已发布目录中,但在事件查看器中,错误:



应用程序:APP.exe框架版本:v4.0.30319
说明:由于未处理的异常,该进程已终止。
异常信息:CefSharp.Wpf.ChromiumWebBrowser.NoInliningConstructor()处的CefSharp.Wpf.ChromiumWebBrowser..ctor()处的System.IO.FileNotFoundException b $ b

任何帮助表示赞赏,因为不确定要在其他地方解决。

解决方案

您应在目标计算机上安装vc ++ redist 2013(x86或x64)。
vc ++ redist 2015无法正常工作。



可从此处下载:



用于Visual Studio 2013的Visual C ++可再发行组件包


Have used CefSharp to use the chromium web browser in a WPF project. The build works as expected, but when published, the error received is:

The invocation for the constructor on type 'CefSharp.Wpf.ChromiumWebBrowser' that matches the specific binding constraints threw an exception.' Line number '24' and line position '15'. IsTerminating:True

Have followed the advise here:

https://github.com/cefsharp/CefSharp/issues/2030

Which unfortunately has not yielded any results, have also followed the read me here:

https://github.com/cefsharp/cef-binary/blob/master/README.txt#L82

The files exist in the published directory, but in the event viewer, the error:

Application: APP.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.IO.FileNotFoundException at CefSharp.Wpf.ChromiumWebBrowser.NoInliningConstructor() at CefSharp.Wpf.ChromiumWebBrowser..ctor()

Any assistance appreciated, as am not sure where else to look to resolve.

解决方案

You should install vc++ redist 2013(x86 or x64) on the target computer. vc++ redist 2015 doesn't work.

Download available from here:

Visual C++ Redistributable Packages for Visual Studio 2013

这篇关于CefSharp WPF错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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