AutoCAD 2022 CefSharp

AutoCAD 2022 CefSharp

tbrammer
Advisor Advisor
1,149 Views
1 Reply
Message 1 of 2

AutoCAD 2022 CefSharp

tbrammer
Advisor
Advisor

We use CefSharp.WinForms to render some Content in an AutoCAD plugin. In the past everything works fine with AutoCAD 2020.  Since we have updated to AutoCAD 2022 we have problems when resolving the dll's of CefSharp.

 

When we call

var settings = CefSharp.WinForms.CefSettings();

We get an Exception:

System.IO.FileLoadException: 'Eine von "CefSharp.Core.Runtime.dll" importierte Prozedur konnte nicht geladen werden.'  (translated: "Unable to load imported procedure")

 

We found the following topic:

https://forums.autodesk.com/t5/net/autocad-2021-cefsharp/td-p/9725613

But there is no solution for us because we don't want to switch the WebView-Control or to WebView2.

 

Some notes about our AutoCAD plugin:

We install the binaries in its own directory (not under C:\Program Files\Autodesk\AutoCAD 2022):

C:\Program Files\<our company>\xyz\BIN

We implement IExtensionApplication and load the plugin with netload.

To resolve our dll's we use the Event

AppDomain.AssemblyResolve

with

Assembly.LoadFrom()

 


Thomas Brammer ● Software Developer ● imos AGLinkedIn
If an answer solves your problem please [ACCEPT SOLUTION]. Otherwise explain why not.

0 Likes
1,150 Views
1 Reply
Reply (1)
Message 2 of 2

gleeuwdrent
Advocate
Advocate

I am facing exactly the same problem. Have you already found a solution?

I guess that is has a relationship with the AcCef module, which is added to AutoCAD since 2021 version:

C:\Program Files\Autodesk\AutoCAD 2021\AcCef

 

This module is using CefSharp too, and maybe there is a conflict in versions? But I don't know how to solve it.

0 Likes