Hi,
Since upgrading to Nop 4.2, I'm having issues with scheduled tasks like email sending, currency update, etc. It is giving me a parameter expiration error, as pasted below in full.
Please someone assist.
Error
Short message
The "Update currency exchange rates" scheduled task failed with the "Specified argument was out of the range of valid values.
Parameter name: expiration" error (Task type: "Nop.Services.Directory.UpdateExchangeRateTask, Nop.Services". Store name: "Muriash eCommerce Limited". Task run address: "https://www.muriash.com/scheduletask/runtask").
Full message
System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: expiration
at EasyCaching.Core.ArgumentCheck.NotNegativeOrZero(TimeSpan argument, String argumentName)
at EasyCaching.InMemory.DefaultInMemoryCachingProvider.BaseSet[T](String cacheKey, T cacheValue, TimeSpan expiration)
at EasyCaching.Core.EasyCachingAbstractProvider.Set[T](String cacheKey, T cacheValue, TimeSpan expiration)
at Nop.Core.Caching.MemoryCacheManager.PerformActionWithLock(String key, TimeSpan expirationTime, Action action) in C:\andrei\nopcommerce\sources\src\Libraries\Nop.Core\Caching\MemoryCacheManager.cs:line 105
at Nop.Services.Tasks.Task.Execute(Boolean throwException, Boolean ensureRunOncePerPeriod) in C:\andrei\nopcommerce\sources\src\Libraries\Nop.Services\Tasks\Task.cs:line 143
IP address
64.20.49.130
Customer
Page URL
https://www.muriash.com/scheduletask/runtask
Referrer URL
Created on
8/12/2019 10:33:48 PM