dupuism

COM Exceptions

Discussion created by dupuism on Feb 5, 2010
Latest reply on Feb 5, 2010 by spilon

Hello,

 

I am writing a code using VB to access numerous servers to retrieve PI data. However, I can never connect to the server a COM exception is caught and the details are shown below. What could be causing this problem? Is it a setting with PI? I have had a coworker try the code and it works for him.

 

System.Runtime.InteropServices.COMException was caught
ErrorCode=-2147220308
HelpLink="C:\Program Files\PIPC\PISDK\..\Help\pisdk.chm"
Message="The specified time is invalid "
Source="PISDKRegistry.dll"
StackTrace:
at PISDK.Server.Open(String connectstring)
at ConsoleApplication1.Module1.Connect() in Z:\Mike Dupuis\VB Project\Test\Form1.Designer.vb:line 60

 

Thanks,

 

Mike

Outcomes