Following this link Connecting to a PI Data Archive I tried to connect to our PI Data Archive via AF SDK in a first instance using implicit connection but I get following error:
PIAuthenticationException: [-10407] No Access - Secure Object
So I tried then explicit connection with the following code:
PIServer server = new PIServers().DefaultPIServer;
if (server.ConnectionInfo.IsConnected == false)
NetworkCredential credential = new NetworkCredential("pidemo", String.Empty);
But I get this error with previous code:
System.Runtime.InteropServices.COMException: 'Unable to find PISDK registry common key NodeType'
Can anyone help me? I can't find much info regarding that error. I can connect to Data Archive using DataLink and pidemo user without problems.