问题
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