Hello,
.NET 4.7.2 project in VS 2022 Community, the following code in a function seems to work :
obj = AppDomain.CurrentDomain.CreateInstanceFromAndUnwrap(fichier, "Remote.Remote");
with "Remote.Remote" an implementation of a modular device dialog using OpcLabs.QuickOPC \ EasyUAClient class (not component).
"obj" is returned not null and contains all the implemented members as expected. No exception occurs at that time, some controls have time to be display updated with some of obj members, but after a few seconds, the following exception is raised :
System.TypeInitializationException
HResult=0x80131534
Message=Une exception a été levée par l'initialiseur de type pour 'OpcLabs.EasyOpc.UA.Implementation.NetSdk.Client.EasyUAClientEngineBase'.
Source=OpcLabs.EasyOpcUA
Arborescence des appels de procédure :
à OpcLabs.EasyOpc.UA.Implementation.NetSdk.Client.EasyUAClientEngineBase.CurrentDomainOnUnhandledException(Object sender, UnhandledExceptionEventArgs unhandledExceptionEventArgs)
dans OpcLabs.EasyOpc.UA.Implementation.NetSdk.Client\EasyUAClientEngineBase.cs :ligne 113
Cette exception a été levée à l'origine dans cette pile des appels :
Exception interne 1 :
MissingMethodException : Méthode introuvable : 'System.Diagnostics.ActivitySource OpcLabs.BaseLib.Diagnostics.Managed.ActivitySourceManager.ProtectedGetActivitySource(System.String)'.
I struggle with managing the origin of such an exception...
Have anyone already encounter such an issue?
Thanks,
Laurent