Error: Can not implicitly convert type 'System.Threading.Tasks.Task <long>' to 'long'
Not correct:
long ID = clsDB.Get_ID_by_RefNr_OnServer(ID_on_Server);
Solved:
long ID = await clsDB.Get_ID_by_RefNr_OnServer(ID_on_Server);