davidl

EventPipe exception

Discussion created by davidl on Nov 24, 2014
Latest reply on Nov 27, 2014 by davidl

Hello All.

 

I'm writing a program using PISDK 1.4.2, for PI server 3.4.370.76.
The goal of the program is to track points attributes changes.

 

The code prints all digital sets and tries to retrieve the event pipe:

 

        foreach (StateSet set in myServer.StateSets)
        {
                Console.WriteLine(set.Name);

                foreach (DigitalState d in set)
                    Console.WriteLine("{0}, {1}", d.Code, d.Name));
        }

 


        IEventPipeAccess pipeAccess = myServer.PIPoints as IEventPipeAccess;
        EventPipe pointChanges = pipeAccess.EventPipe;

The last line throws following exception:
System.Runtime.InteropServices.COMException (0x80010105): The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))
   at PISDK.IEventPipeAccess.get_EventPipe()

 

What can be a reason? Please help :)

Outcomes