Gettings a exception Error (15,8):userId:

Topics: Errors
Sep 7, 2015 at 12:18 AM
What does this error mean?

How do I under VB.net see if a task is created already or not? I've search online but couldn't really find anything that will help.
Coordinator
Sep 7, 2015 at 4:42 AM
Edited Sep 8, 2015 at 2:52 PM
That error usually means that the TaskDefinition.Principle.UserId or the userId parameter of the RegisterTaskDefinition has been supplied an invalid user account name.

To answer the second question:
Using TS As New TaskService()
   If TS.FindTask("MyTaskNameHere") = Null Then
      ' You don't have that task
   End If
End Using
Marked as answer by dahall on 9/6/2015 at 8:42 PM
Sep 7, 2015 at 5:57 AM
Thank you for the reply,

that's weird because it everything was working great until I updated my program and then that happened but It only happened once so far.
Sep 7, 2015 at 6:01 AM
also your code
Using TS As New TaskService()
   If TS.FindTask("MyTaskNameHere") = Nothing Then
      ' You don't have that task
   End If
End Using
the = says its on a declared type in your DLL.
Coordinator
Sep 8, 2015 at 2:53 PM
Try with Null as in the changed example