Hi;
I seem to crash (or break) VC when I execute the below code..
Dim c As New VisualCronAPI.Connection
Dim connection As New VisualCronAPI.Connection With {.ConnectionType = VisualCronAPI.Connection.ConnectionT.Remote, .Address = "smallappstest", .Port = 16444, .UseADLogon = True}
Dim Client As New VisualCronAPI.Client
Dim MyServer As VisualCronAPI.Server = Client.Connect(connection, True)
Dim Job As New JobClass With {.Name = "Test3", .TimeOut = New TimeOutClass With {.Minutes = 5, .Use = True, .ConsiderError = True}}
Dim Tasks2 As New TaskClass
Tasks2.Name = "Taskname"
Job.Tasks.Add(Tasks2)
MyServer.Jobs.Add(Job)
VC is returning the below after about 10 sec
System.ArgumentNullException: Value cannot be null.
Parameter name: key
at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
at System.Collections.Generic.Dictionary`2.ContainsKey(TKey key)
at VisualCronAPI.Jobs.Contains(String strJobId)
at frmMain2.LGOFIHDBKKNMKLGKEDAMKMHJDNAHAMGLGILI(Server& , JobClass , TaskClass ) in C:\sourcefiles\code\VisualCron\Main\frmMain2.vb:line 1935
I have added / removed / imported / generally playing around / so I am wondering if there could be a relation?
Upon VC restart, the application will display the same error again.
And also... does my code seem to be correct??
Thanks, Martin
Edited by moderator
2014-09-08T05:50:35Z
|
Reason: Additional information