Free Code Snippets in C#, Net Framework, Office 365, ASP.Net,WPF, Visual Studio, SQL Server, Antivirus free
#

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);

 

 

Mobile
»
Error: A second operation started in this context before a previous asynchronous operation completed.
»
Error: Can not implicitly convert type System.Threading.Tasks.Task long to long
»
Error caused by Caliburn Micro
»
WPF: System.Windows.Interactivity is broken or missing
»
WPF Error: An error occurred while signing
»
WPF Registry. DeleteSubKey: System.UnautohorizedAccessException
»
WPF: UserControl.Name does not use hyphen dashes

.

Contact for Jobs, Project Requests: raimund.popp@microsoft-programmierer.de