I am trying to embed the browser into a COM object. But when I try to create an engine instance like so:
_browserView = new BrowserView { Dock = DockStyle.Fill };
try
{
_engine = EngineFactory.Create(new EngineOptions.Builder
{
RenderingMode = RenderingMode.HardwareAccelerated
}
.Build());
}
catch (Exception e)
{
LogException("*** Engine create exception: " + e.Message.ToString());
}
I always get this exception: "The specified procedure could not be found". Can someone please tell me what procedure is missing here? If I copy the same code into a vanilla C# WinForms project. Everything works fine.
Thank you.
PS: I'm adding the full exception stack here:
System.ComponentModel.Win32Exception (0x80004005): The specified procedure could not be found
at DotNetBrowser.Internals.Ipc.Libraries.NativeLibraryHelperWin.LoadNativeLibrary(String path, String dllName)
at DotNetBrowser.Internals.Ipc.Libraries.NativeLibraryHelperFactory.CreateHelper(String path, String nativeLibraryName)
at DotNetBrowser.Internals.Ipc.Libraries.NativeLibraryBase..ctor(String path, Type libraryType)
at DotNetBrowser.Internals.Ipc.Libraries.SharedMemoryLibrary..ctor(String path)
at DotNetBrowser.Internals.Ipc.Libraries.SharedMemoryLibrary.GetOrCreate(String path)
at DotNetBrowser.Internals.Ipc.ConnectionServer..ctor(String ipcLibraryPath, String optionsLicenseKey)
at DotNetBrowser.Internals.Ipc.ChromiumIpc..ctor(EngineOptions options)
at DotNetBrowser.Internals.Ipc.ChromiumIpc.Create(EngineOptions options)
at DotNetBrowser.Engine.EngineRpcService..ctor(EngineOptions options)
at DotNetBrowser.Engine.EngineFactory.Create(EngineOptions options)
at CreateBrowser() in C:\CurrProj\DVRs\AxCtrl\AxCtrl.cs:line 111