I've got the following code to connect to Dynamics 365 Online organization. It throws a null reference exception on orgService.Execute(…