I am trying to integrate CefSharp in a C# project I am developing in Visual Studio 2010 on Windows XP. Similar errors have been reported by other people running Windows Server 2003.
I add CefSharp.WinForms via NuGet and it seem to work great.
I compile and run the app however when I try to load CefSharp I get "A procedure imported by 'CefSharp.Core.dll' could not be loaded."
Below is the code I run:
var settings = new CefSharp.CefSettings {
PackLoadingDisabled = true
};
if (Cef.Initialize(settings)) {
throw new Exception("Failed to initialze CefSharp");
}
var browser = new CefSharp.WinForms.ChromiumWebBrowser("http://www.google.com/");
browser.SetBounds(0, 0, ClientSize.Width, ClientSize.Height);
Controls.Add(browser);
On the CefSharp FAQ It tells me that I should perform a number of tasks which I have done in order to run on Windows XP, even though XP is not officially supported it says in the FAQ that it works.
- Please make sure you've got the latest service pack and patches are applied YES
- Make sure the correct Visual C++ version is installed. YES
- Disable GPU Acceleration (see https://github.com/cefsharp/CefSharp/issues/627#issuecomment-64232089) NOT RELEVANT since I cannot even instanciate CefSettings
- Make sure your building in Release mode. YES Tried that
- Look in the Debug.log file in your bin directory (increasing logging verbosity maybe required see https://github.com/cefsharp/CefSharp/blob/master/CefSharp.Example/CefExample.cs#L22) NOT RELEVANT since I cannot even instanciate CafSettings
- Upgrade to the latest GPU Drivers if you haven't already. YES
120
for the c++ project. (although I'm not really sure that was really nessecairy) – Caponize