I’ve written a large C# 4.0 App in Visual Studio 2010. Some time ago I added the CEF framework (version 22.214.171.124) in order to utilize a webbrowser inside my WinForms application.
If I run my app from Visual Studio, the browser runs correctly. However, upon using ClickOnce to deploy my app and attempting to launch the Web Browser, it threw the following error: “Could not load file or assembly ‘CefSharp.Core.dll’ or one of its dependencies. The specified module could not be found.” Although all the CEF files are present in the bin\Debug folder.
The Github\CefSharp site offers 3-suggestions, of which I have tried steps 1 and 2, i.e.,
I have carefully checked that ALL dll’s are present in the executing folder. (step 2.)
Although my App was created in Visual Studio 2010 , the first suggestion was to include Visual C++ 2012 Redistributable Package. The FAQ’s state that CefSharp version 43.0.0 requires the 2012 redistributables. (step 1.)
I downloaded and installed vcredist_x86.exe (2012 version), created product.xml and package.xml Bootstrapper files in the Program Files (x86)\Microsoft SDKs directory. However, even after including these as prerequisites, the same error remains.
Here’s the 3rd suggestion, which I cannot find any specifics on, i.e., “You packaged your application for distribution via an installer and it doesn’t run on the target machine. Installers don’t include the unmanaged resources by default, you’ll need to add them manually. For ClickOnce, see #1314 for some pointers and solutions other users have come up with.”
Where can I find #1314 for some pointers and solutions on using ClickOnce? Even after implementing steps 1 and 2, the same exception is thrown and I’m unable to launch the CEF browser.