Open Closed

Sending email in Task.Delay() error #10817


0
sylvestergordon@gmail.com 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)
  • 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.

  • 0
    sylvestergordon@gmail.com created

    Here is the log file log file link

    please download the attached file

  • 0
    sylvestergordon@gmail.com created

    Any answer?

  • 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 info@aspnetzero.com and also share the steps to reproduce this problem ?

    Thanks,