your code have no error
click Right in DemoProject to properties
Application > Target framework > .NET Framework 4.6.1
and Save All Look if the problem fix
Hi Sir Download that API Here > that will fix your assembly
to enter the project :-
API Examples > DemoProject > DemoProject > DemoProject.sln
And Add Your Script i hope your callouts will be good