Issue calling new CGX_Net from standalone program

I recently upgraded Montaj, and a C# dotnet standalone program has stopped working, in the call to new CGX_NET in the final line of the following code snippet:

//IntPtr hWnd = (IntPtr)Windows.


//IntPtr handle = Process.GetCurrentProcess().MainWindowHandle;


//NativeWindow nativeWindow = new NativeWindow();


//nativeWindow.AssignHandle(handle);


// var hwnd = new WindowInteropHelper(handle).Handle;

// Pro
//string dllPath = "geosoft.desktop.gxnet.dll";

// Assembly desktoGxNet = Assembly.LoadFrom(dllPath);


//dllPath = "geoengine.core.gxnet.dll";


//Assembly coreGxNet = Assembly.LoadFrom(dllPath);


// dllPath = "GeoEngine.Core.Managed.dll";


// // Assembly coreManaged = Assembly.LoadFrom(dllPath);


pGeo = new CGX_NET("SvMgr", "V1", 2047, null, 0);

The commented-out code runs fine, verifying that paths and DLLs are in the correct places, and load just fine. I left it in this post just to indicate that I've taken those steps.a

The code throws no exceptions, but rather, after bout 5 seconds, the entire c# program exits with the following error return value: 0x80000003.

This is running on a system with Montaj running correctly. The failure happens whether Montaj is active or not.

A Google search for that error code returns a bunch of results about programs trying to display a dialog, and is failing because of that. The behavior (including the 5-second pause) is consistent with an authentication failure, at which point the library might throw up an error dialog. But the Montaj/Seequent login is fine.

Does this ring any bells? Has something changed about authentication? Does this program need to use some other authentication (have I seen a notice about the "Bentley sign-in", in contrast to the legacy Seequent login?).

Any advice would be appreciated.

Thanks,

Bob Cram

Geometrics