Hello,
I am currently trying to write us a sample application to help one of my customers writing a WPF Application using OPC Data Client's live binding component. Unfortunately, I am not able to successfully add the live binding WPF component to the Main Windows, and every time I try I get an "Exception of Type Target ParameterCountExeption" see full exception below. Is there something that I am not configuring correctly? I am following the
Making a first OPC UA application using Live Binding in WPF
in the help manual. The development environment can be found below as well, please let me know if you need anything else from me. Thank you in advance:
Dev Environment:
OS: WIN 10
OPC Data Client 2019.2 (5.56.475.1)
.NET Framework 4.7
VS 2019
Exception of type TargetParameterCountException
Type: System.Reflection.TargetParameterCountException
Data:
HelpLink:
HResult: -2147352562 (0x8002000e)
InnerException:
Message: Parameter count mismatch.
Source: mscorlib
StackTrace:
at System.Reflection.RuntimeMethodInfo.InvokeArgumentsCheck(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at OpcLabs.BaseLib.Presentation.Design.Utilities.WpfVSxxxxDesignUtilities.GetAttributesPropertyValueAsArray(ModelProperty collectionModelProperty, String collectionPropertyName)
at OpcLabs.BaseLib.Presentation.Design.LiveBinding.BindingContextMenuProvider.InternalEditLiveComponentBag(EditingContext editingContext, Selection selection)
at OpcLabs.BaseLib.Presentation.Design.LiveBinding.BindingContextMenuProvider.EditLiveComponentBag_Execute2(EditingContext editingContext, Selection selection)
TargetSite: System.Object[] InvokeArgumentsCheck(System.Object, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo)
DeclaringType: System.Reflection.RuntimeMethodInfo
Module: CommonLanguageRuntimeLibrary
Assembly: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
CustomAttributes: [System.Security.UnverifiableCodeAttribute()]
FullyQualifiedName: C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll
MDStreamVersion: 131072
MetadataToken: 1
ModuleHandle: System.ModuleHandle
MDStreamVersion: 131072
ModuleVersionId: 2e8d4299-bfa6-4998-b1c3-a8500640be45
Name: mscorlib.dll
ScopeName: CommonLanguageRuntimeLibrary