This is from the Element log of the AppearTV Connector
2023/12/27 12:21:35.194|SLManagedScripting.exe|ManagedInterop|ERR|-1|32|Exception during execution:
Cookie: 99
Content 1: VT_ARRAY|VT_VARIANT (7)
0 VT_I4 : 5100
1 VT_I4 : 191101
2 VT_I4 : 264
3 VT_BSTR : TEST DMG - copy
4 VT_BSTR : ...
Content 2: VT_EMPTY .
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.MissingMethodException: Method not found: 'Void QAction_1.PollManager.RequestHandler.RequestHandler.HandleSetRequest(Skyline.DataMiner.Scripting.SLProtocol, System.Guid, Skyline.DataMiner.Utils.AppearTV.X20.Api.Http.SLHttpRequest, QAction_1.PollManager.RequestType)'.
at QAction.Run(SLProtocol protocol)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
at CManagedScript.Run(CManagedScript* , Int32 iDmaId, Int32 iEid, Int32 trigger, Int32 iCookie, IUnknown* pILog, IUnknown* pProtocol, tagVARIANT* varParameters, tagVARIANT* varRowInfo, tagVARIANT* pvarReturn)
InnerException:
System.MissingMethodException: Method not found: 'Void QAction_1.PollManager.RequestHandler.RequestHandler.HandleSetRequest(Skyline.DataMiner.Scripting.SLProtocol, System.Guid, Skyline.DataMiner.Utils.AppearTV.X20.Api.Http.SLHttpRequest, QAction_1.PollManager.RequestType)'.
at QAction.Run(SLProtocol protocol)
2023/12/27 12:21:35.195|SLProtocol - 12156 - TEST DMG - copy|8276|CQAction::RunWrapped|DBG|-1|Script 37 triggered by parameter 5100 from element 'TEST DMG - copy' threw an unhandled exception. Please check the element log-file.
2023/12/27 12:21:35.195|SLProtocol - 12156 - TEST DMG - copy|8276|CQAction::Run|ERR|-1|QAction [37] triggered by [pid=5100/idx=-1/pk=/user=] failed. (0x800402DA)
Input: new = <NULL>
Input: old = <NULL>
Input: extra = <NULL>
However the method exist in QAction_1 line 21595. Not exactly sure how to approach debugging this
Hi William,
Could you confirm the version of the AppearTV connector you are using?
Given that you are seeing a MissingMethodException and not compilation errors I do believe it could be an issue with the NuGets being used and some version incompatibility as we have seen a couple of similar reports in the past where during compilation nothing pops up and only under specific use conditions the issue manifests itself.
If you let us know the version we could confirm on our side or you could check the dllImport attribute of QAction 1 and 37 for duplicate entries of the same library but with different versions.