Error when using CefSharp WinForms

六眼飞鱼酱① 提交于 2020-01-06 23:44:44

问题


I'm currently using CefSharp in order to embed an Asp.Net website inside a Windows Form. When running on Visual Studio everything works fine, but when I build the application and then I deploy it to the client (User Pc) I get an error that says "Could not load file or assembly 'CefSharp.Core.dll' or one of its dependencies". The main application is built in x86, thus we're using CefSharp in x86. I've updated the .Net Framework, I even copied icutdtl.dat but nothing gets solved. Currently it only works in one client but in the in the others it doesn't.

What could be the problem that causes CefSharp to fail?


回答1:


CefSharp uses VC++ 2012 for which you need to install the redist on the client machines or include the relevant files in your bin directory. Make sure you install the matching version, either x86 or x64.

You can download the redist from https://support.microsoft.com/en-us/kb/2977003

Also see this FAQ entry should you wish to include the libs as part of your app. https://github.com/cefsharp/CefSharp/wiki/Frequently-asked-questions#6-how-do-i-include-the-visual-studio-c-2012-redistributables-on-the-target-app



来源:https://stackoverflow.com/questions/32319110/error-when-using-cefsharp-winforms

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