You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When getting the NodeState corresponding to the node PropertyType (i=68) using the method FindNodeInAddressSpace of class CustomNodeManager2, the NodeState object returned is BaseDataVariableTypeState instead of a PropertyTypeState.
This seems to be related to the loading of predefined node from the binary file Opc.Ua.Stack.Generated.Opc.Ua.PredefinedNodes.uanodes in the DiagnosticsNodeManager, see attached screenshot.
Expected Behavior
Get PropertyTypeState instead of BaseDataVariableTypeState
Steps To Reproduce
Use a reference server and just call FindNodeInAddressSpace on the node manager using the node ID i=68
Environment
- OS: Windows 11
- Environment: VS 2022
- Runtime: .NET9.0
- Nuget Version:
- Component:1.5.374.158 but same on master
- Server: ReferenceServer or anyother server
Anything else?
It does matter because:
The return C# object type is the wrong type obvioulsy, therefore we cannot rely on the loaded nodes, are there some other cases where the C# object type is invalid?
The test `node is PropertyTypeState' does not work. More generaly, if the stack does not load the object with the correct C# type such simple test cannot be used, then you need to go with attributes, node IDs, etc.
The text was updated successfully, but these errors were encountered:
Type of issue
Current Behavior
When getting the NodeState corresponding to the node PropertyType (i=68) using the method FindNodeInAddressSpace of class CustomNodeManager2, the NodeState object returned is BaseDataVariableTypeState instead of a PropertyTypeState.
This seems to be related to the loading of predefined node from the binary file Opc.Ua.Stack.Generated.Opc.Ua.PredefinedNodes.uanodes in the DiagnosticsNodeManager, see attached screenshot.
Expected Behavior
Get PropertyTypeState instead of BaseDataVariableTypeState
Steps To Reproduce
Use a reference server and just call FindNodeInAddressSpace on the node manager using the node ID i=68
Environment
Anything else?
It does matter because:
The text was updated successfully, but these errors were encountered: