CefSharp on Windows XP / Server 2003 / VS 2010

I am trying to integrate CefSharp into a C # project that I am developing in Visual Studio 2010 on Windows XP. Similar errors have been reported by other people running Windows Server 2003.

  • I am adding CefSharp.WinForms through NuGet and it seems to work fine.

  • I build and run the application, however, when I try to download CefSharp, I get: "The procedure imported by" CefSharp.Core.dll "cannot be loaded."

Below is the code I'm running:

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); 

In CefSharp Frequently Asked Questions, He tells me that I have to complete a series of tasks that I did to run in Windows XP, although XP is not officially supported, he says in the FAQ that it works.

Error message that appears

Project files

Files in bin \ x86 \ debug

+6
source share
4 answers

I think there is a typo / missing word in "Make sure the correct version of Visual C ++ is installed."

IMHO he should read: "Make sure the correct version of Visual C ++ Redistributable is installed.

This is a link to another FAQ item: https://github.com/cefsharp/CefSharp/wiki/Frequently-asked-questions#Including_vcredist

0
source

There are several potential problems you should keep an eye on:

1 - set the path of the browser subprocessor:

 var settings = new CefSettings { BrowserSubprocessPath = "CefSharp.BrowserSubprocess.exe" }; 

2 - specify the address / html NOT in your ctor, but in the browser.IsBrowserInitialised event (and only after checking the browser initialization). In short, CEF is a BIG FAT dll that takes time to load and initialize. We will work as soon as possible!

0
source

Same problem. REALLY REALLY annoying. I tried the dependency walker and it did not give me any relevant information. All textbooks do not provide relevant information. I am sure this is not possible, at least with the nuget package.

0
source

I had a problem resolving this topic.

https://groups.google.com/forum/#!searchin/cefsharp/xp/cefsharp/J5gX7OKf7Rc/EoB3h0UmfYYJ

If you have VS2013 and some time, you can try to create the source code with a few changes.

  • Make sure you create in Release mode when deploying to XP / 2003
  • Change two C ++ Platform Toolset projects on Visual Studio 2013 - Windows XP (v120_xp)
  • Make sure VC++ 2013 Redist installed on your computer.
0
source

Source: https://habr.com/ru/post/981437/


All Articles