{"action":"opened","issue":{"url":"https://api.github.com/repos/dahall/TaskScheduler/issues/148","repository_url":"https://api.github.com/repos/dahall/TaskScheduler","labels_url":"https://api.github.com/repos/dahall/TaskScheduler/issues/148/labels{/name}","comments_url":"https://api.github.com/repos/dahall/TaskScheduler/issues/148/comments","events_url":"https://api.github.com/repos/dahall/TaskScheduler/issues/148/events","html_url":"https://github.com/dahall/TaskScheduler/issues/148","id":314345733,"number":148,"title":"System.NullReferenceException exception in web service call task","user":{"login":"dahall","id":14349943,"avatar_url":"https://avatars0.githubusercontent.com/u/14349943?v=4","gravatar_id":"","url":"https://api.github.com/users/dahall","html_url":"https://github.com/dahall","followers_url":"https://api.github.com/users/dahall/followers","following_url":"https://api.github.com/users/dahall/following{/other_user}","gists_url":"https://api.github.com/users/dahall/gists{/gist_id}","starred_url":"https://api.github.com/users/dahall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dahall/subscriptions","organizations_url":"https://api.github.com/users/dahall/orgs","repos_url":"https://api.github.com/users/dahall/repos","events_url":"https://api.github.com/users/dahall/events{/privacy}","received_events_url":"https://api.github.com/users/dahall/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-14T17:16:29Z","updated_at":"2018-04-14T17:16:29Z","closed_at":null,"author_association":"OWNER","body":"I wrote an c# console app which calls web service.\nI needed to run this app for every night, so I decided to use this task scheduler as it seems a good one to do my job.\n\nBut I got an issue which says \"Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object. ...\"\nI read many articles described about same issue, but nothing is helpful.\n\nFor example,\n\n```\n                TaskDefinition td = ts.NewTask();\n                td.RegistrationInfo.Description = \"Does something\";\n                td.Principal.Id = \"any string\";\n                td.Principal.GroupId = \"NETWORK SERVICE\";\n                td.Principal.RunLevel = TaskRunLevel.LUA;\n                td.Principal.LogonType = TaskLogonType.S4U;\n                ts.RootFolder.RegisterTaskDefinition(@\"NetsuiteInvoiceGetTask\", td);\n```\n\nMy OS is Windows7 64bit.\nCan anyone help me? Thanks.\n\rOriginally posted: 2014-09-07T03:46:33"}}
{"actor":{"display_login":"dahall"}}