Nop Commerce 4.0. Send email Schedule Task error. "The underlying connection was closed"

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
5 years ago
Hi everyone,

I have encountered an issue with the "Send emails" schedule task. This is the error-message when the task is triggered:

System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.

My observations so far:
- If I trigger it manually it works and all the other tasks work as well.
- The error occurs only on our productive environment but not on our test environment
- SSL-certificates are valid (checked with https://www.sslshopper.com/ssl-checker.html)

Has anyone else ran into this or have any solution?
5 years ago
Did you ever have to working or Has it just stopped working ?
On some servers some SSL/TLS protocols have been blocked over the last few months
Need to check you email provider and the versions to be used

Here is a similar post which may help
https://www.nopcommerce.com/boards/t/50563/scheduled-task-do-not-work-nopcommerce-40.aspx
5 years ago
Hello,

Please do not duplicate forum post.

There are lots of post related to this topic.

You can find it from here.

There are some of the link may be it is useful for you.

I have been facing same error due to TLS.

https://www.nopcommerce.com/boards/t/54568/nopcommerce-40-scheduled-tasks-not-triggering-underlying-connection-was-closed.aspx.

https://www.nopcommerce.com/boards/t/50563/scheduled-task-do-not-work-nopcommerce-40.aspx This post/answer is useful 0 This post/answer is not useful.
5 years ago
sk5202 wrote:
Hello,

Please do not duplicate forum post.

There are lots of post related to this topic.

You can find it from here.

There are some of the link may be it is useful for you.

I have been facing same error due to TLS.

https://www.nopcommerce.com/boards/t/54568/nopcommerce-40-scheduled-tasks-not-triggering-underlying-connection-was-closed.aspx.

https://www.nopcommerce.com/boards/t/50563/scheduled-task-do-not-work-nopcommerce-40.aspx This post/answer is useful 0 This post/answer is not useful.


Thank you, I have read these posts before but I was not able to solve the problem with the given answers. That is why I opened a new thread.

I was able to solve the issue, though. The error was due to an locally installed, outdated ssl-certificate. When accessed externally, the website's certificate was ok but the internal certificate for localhost was invalid.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.