Base solution for your next web application
Open Closed

Sending email in Task.Delay() error #10817


User avatar
0
[email protected] created

What is your product version? 11 What is your product type (Angular or MVC)? Anulgar What is product framework type (.net framework or .net core)? .net core

Getting error while calling Email.SendPasswordResetLinkAsync() in a thread. When i call first time, it executed with no error. When i execute second time it give error await Task.Delay(new TimeSpan(0, 0, 10)).ContinueWith(async start => { await _userEmailer.SendPasswordResetLinkAsync(user,link); // here it is working fine   await _userEmailer.SendPasswordResetLinkAsync(user,link); // here i get error });


4 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Could you open your server side log file and share the full stack trace with us ? You can find the log file under *.Host/App_Data/Logs folder.

  • User Avatar
    0
    [email protected] created

    Here is the log file log file link

    please download the attached file

  • User Avatar
    0
    [email protected] created

    Any answer?

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    When I look at the log file, there are no errors. Is it possible to share your project with [email protected] and also share the steps to reproduce this problem ?

    Thanks,