Readdy Write

Fehler: A second operation started on this context before a previous asynchronous operation completed.

20.08.2018 (👁4234)


 

 

Fehler:

A second operation started on this context before a previous asynchronous operation completed.

Use 'await' to ensure that any asynchronous operations have completed before calling another method on this context.

Any instance members are not guaranteed to be thread safe."

Ursache:

Man muss beim Linq EF Entity Framework zugriff auch die aufzurufende Methode auf await verwenden

Falscher Code:

clsDB.Add_or_Update_Record_from_List(sURL_Detail, sTitle);

 

 

Lösung:

Richtiger Aufruf mit await

await clsDB.Add_or_Update_Record_from_List(sURL_Detail, sTitle);

 

 


0,00 €