A procedure imported by CefSharp.Core.Runtime.dll Exception

Having problems with building or using the CefSharp .NET binding? Ask your CEF-related questions here. Please ask general usage questions on StackOverflow.

Moderator: amaitland

A procedure imported by CefSharp.Core.Runtime.dll Exception

Postby GlennSGC » Thu Feb 16, 2023 10:43 pm

I've never have seen an error like this.

I upgraded from v109.1.11 to v110.0.25 today and get an exception...

A procedure imported by CefSharp.Core.Runtime.dll could not be loaded

Here is line of code causing it...

public ChromiumWebBrowser chromeBrowser;
chromeBrowser = new ChromiumWebBrowser("https://google.com");

When I revert back to v109.1.11 no more exception.

-Please advise,
Glenn
GlennSGC
Newbie
 
Posts: 4
Joined: Sun Jul 10, 2022 10:29 am

Re: A procedure imported by CefSharp.Core.Runtime.dll Except

Postby ndesktop » Fri Feb 17, 2023 5:28 am

Looks like an incompatibility. What function export is missing?
ndesktop
Master
 
Posts: 756
Joined: Thu Dec 03, 2015 10:10 am

Re: A procedure imported by CefSharp.Core.Runtime.dll Except

Postby GlennSGC » Fri Feb 17, 2023 9:44 am

I looked at the StackTrace in the exception and it shows CefSharp.Cef.get_IsInitialized()

Source: "CefSharp.Core"
FileName: "CefSharp.Core.Runtime.dll"

More details:

System.IO.FileLoadException
HResult=0x8007007F
Message=A procedure imported by 'CefSharp.Core.Runtime.dll' could not be loaded.
Source=CefSharp.Core
StackTrace:
at CefSharp.Cef.get_IsInitialized()
at CefSharp.WinForms.ChromiumWebBrowser.InitializeFieldsAndCefIfRequired()
at CefSharp.WinForms.ChromiumWebBrowser..ctor(String address, IRequestContext requestContext)

There are 2 CefSharp.Core.Runtime.dll files. One in x86 and at x64 but they are different file sizes. Both are v110.0.250

x86 is 1,361 KB
x64 is 1,762 KB

I did all CefSharp updates from Visual Studio Project->Manage Nuget Packages

I forgot to mention. My development PC still is using Windows 7 Pro and my Chrome Browser is not receiving any more updates. Does that matter?

It has to be a bug in the latest v110.0.25 release because as I said... If I revert back to the previous release v109.1.11 the problem goes away.
GlennSGC
Newbie
 
Posts: 4
Joined: Sun Jul 10, 2022 10:29 am

Re: A procedure imported by CefSharp.Core.Runtime.dll Except

Postby amaitland » Sat Feb 18, 2023 2:11 pm

My development PC still is using Windows 7 Pro and my Chrome Browser is not receiving any more updates. Does that matter?


As per the Release Notes Windows 7 is no longer supported.

M109 is the last release that will run on Windows 7/8/8.1
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1292
Joined: Wed Jan 14, 2015 2:35 am


Return to CefSharp Forum

Who is online

Users browsing this forum: No registered users and 100 guests