nopCommerce 4.3 to 4.4 Add Scheduled Task - No constructor was found that had all the dependencies satisfied.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
2 years ago
I'm moving from 4.3 to 4.4. I have a Scheduled Task that I've  added successfully in 4.3, but with 4.4 I get the 'No constructor was found that had all the dependencies satisfied' error message when I try and run the task.

I've tried to find where the other Scheduled Tasks get registered with no success.

Searching current Forums and Documentation I can find any tips to try.

Thanks,

David
2 years ago
Here is a code snipit to create a schedule task in v4.4
https://www.selectsystems.com.au/create-a-schedule-task-in-v44
2 years ago
All,

My scheduled service was not registered properly in 4.4.

My custom service, Nop.Services.DMFServices needed to be added to:

Nop.Web.Framework.Infrastructure.DependencyRegistrar.cs

The entry is:
  services.AddScoped<IDMFService, DMFService>();

With this registration, all works well.

This registration was quite different than nopCommerce 4.3.

Hope this helps you save some time :)

David
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.