Replies: 2 comments 1 reply
-
The most common causes of this exception are:
Occasionally when upgrading from a very old version the
If the |
Beta Was this translation helpful? Give feedback.
-
It's runs on Windows 10 and there is only 1 version of CEF in the process. But I have successfully tracked down the cause by deleting out code bit-by-bit until I found the code that triggers the exception: In the project properties there is this Post-build event batch script and when it is removed, the issue goes away:
This script uses the robocopy utility to copy files from a ..\lib\cef source directory to the build output directory. But what is puzzling is the lib folder doesn't actually exist so there is no robocopy or files and its not clear to me why the batch script would trigger the issue. But anyway, removing the script resolves the issue. |
Beta Was this translation helpful? Give feedback.
-
WinForms x86 .NET Framework 4.8 app with old v57.0.0 of CefSharp.WinForms, runs OK with no issues.
Then when I upgrade the NuGets to current v110.0.300 of CefSharp. it still compiles OK but at runtime I get
System.IO.FileLoadException: A procedure imported by 'CefSharp.Core.Runtime.dII' could not be loaded.
I also compiled and ran the CefSharp.MinimalExample.WinForms.net472 project and it runs OK with no issues, so I can't be missing any dependencies? Any ideas?
Update: I already had the Visual C++ 2019 Redist installed, but I installed it again to be certain, but no change.
Beta Was this translation helpful? Give feedback.
All reactions