Using the communication Library for Kepware OPC Server v4.0 (OPCServerCommLib.dll) I started receiving this error when I try to disconnect from the OPC server. Information about this error is available from nowhere and Kepware support was unable to help. I think that my program must still be trying to read even after I perform the disconnect operation but I don't understand why. Here is basically how I am reading data using a thread:
Private Sub MonitoringThread()
If OPCServerConnected Then
PerformOPCReadOperation()
End If
System.Threading.Thread.Sleep(100)
End Sub