Replies: 2 comments 4 replies
-
Beta Was this translation helpful? Give feedback.
1 reply
-
same experience here. Using Visual studio 2022 in my own created WinForm app. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there an existing issue for this?
CefSharp Version
119.4.30.0
Operating System
Windows 10
Architecture
x64
.Net Version
.net framework 4.6.2
Implementation
WinForms
Reproduction Steps
using CefSharp.WinForms;
using CefSharp;
using System.Runtime.InteropServices;
using System.Windows.Forms;
namespace PRM_solidworksPlug
{
[ProgId(TaskpaneIntegration.SWTASKPANE_PROGID)]
public partial class TaskpaneHostUI : UserControl
{
public TaskpaneHostUI()
{
InitializeComponent();
InitBrowser("www.baidu.com");
}
public ChromiumWebBrowser browser;
private void InitBrowser(string link)
{
CefSettings settings = new CefSettings();
Cef.Initialize(settings, true);
browser = new ChromiumWebBrowser(link);
browser.Dock = DockStyle.Fill;
this.Controls.Add(browser);
}
}
}
Using the code above will 100% reproduce the problem: 'Failed to load the process imported by 'CefSharp.Core.Runtime.dll'
Expected behavior
Cefsharp webbrowser can load the website.
Actual behavior
'Failed to load the process imported by 'CefSharp.Core.Runtime.dll' exception happened, if continue, blank on Cefsharp webbrowser.
Regression?
Background: I am trying to write a Solidworks plugin (dll file), function is pretty simple: Solidworks load a usercontrol, and only a cefsharp browser on the usercontrol. Code is tested and debugged on my own laptop. I need to deploy the program on other PC.
With the same setting (.net framework version, cefsharp version), it worked properly on Solidworks 2017 (on my local PC and deployment on other PC). But when I try to deploy this on Solidworks 2021, error happened.
Known Workarounds
I try the following steps:
Does this problem also occur in the CEF Sample Application
Not Tested
Other information
Here is the error page, sorry about the Chinese, but it means: Failed to load the process imported by 'CefSharp.Core.Runtime.dll'
Here is the plugin, showing blank.
This is the source code, pretty simple. Error happen on Cef.Initialize();
Beta Was this translation helpful? Give feedback.
All reactions