Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I am trying to add a scheduled task into my umbraco website. I have added this section in the file umbracoSettings.config:
<task log="true" alias="test60" interval="60" url="http://localhost:52732/umbraco/api/jobvacancies/sync" />
But it is throwing the following exception:
Umbraco.Core.Exceptions.BootFailedException: Boot failed. ---> System.Configuration.ConfigurationErrorsException: Unrecognized element 'scheduledTasks'. (C:\\Source\\Repos\\giro-website\\src\\Giro.Website\\config\\umbracoSettings.config line 61)\r\n at System.Configuration.BaseConfigurationRecord.EvaluateOne(String keys, SectionInput input, Boolean isTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult)\r\n at System.Configuration.BaseConfigurationRecord.Evaluate(FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult, Boolean getLkg, Boolean getRuntimeObject, Object& result, Object& resultRuntimeObject)
I am not sure if this settings has been moved with the version 8 of umbraco.
Scheduled tasks are no longer supported in v8.
We would encourage you to looking into leveraging something like Hangfire instead: https://cultiv.nl/blog/using-hangfire-for-scheduled-tasks-in-umbraco/
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted