WebFarmTaskProcessor EventLog error

James Mosquito asked on September 9, 2020 12:54

Hi, the following error occurs every 10 minutes on our MVC website. When we add an email address to the SMTP settings it causes an e-mail to be sent each time the error occurs:

Source: WebFarmTaskProcessor
EventCode: System.IndexOutOfRangeException_System.Data
Description: Message: Cannot find table 0.

Exception type: System.IndexOutOfRangeException
Stack trace:
at System.Data.DataTableCollection.get_Item(Int32 index)
at CMS.WebFarmSync.WebFarmTaskInfoProvider.DeleteOrphanedTasks()
at CMS.WebFarmSync.WebFarmTaskProcessor.DoMaintenance()
  1. We are not using the website in a WebFarm.
  2. If we disable WebFarm we are prompted to keep it enabled for the CMS and MVC projects to continue to work properly.
  3. We managed to suppress the error based on it's EventCode within the LogEvent_Before method.
  4. Whilst suppressing the error does work, the same error occurs with different EventCodes.
  5. We would prefer to resolve the error than to suppress it.
  6. The error does not seem to cooincide with any of the Scheduled Tasks.

Is anybody aware of this error, it's cause and how we might resolve it please?

Correct Answer

Juraj Ondrus answered on September 9, 2020 13:26

When using MVC, the web farm must be enabled to sync things between Kentico admin app and the MVC app. What is the exact Kentico version and hotfix you are using? I would recommend applying the latest hotfix as there were few bugs in the web farms fixed and also make sure that the Kentico NuGet packages on the MVC app match the hotfix version.

0 votesVote for this answer Unmark Correct answer

Recent Answers


James Mosquito answered on September 9, 2020 13:42

Thanks Juraj, I have found the HotFix documentation and can see reference to a WebFarm fix in V12.0.64. We are currently using V12.0.43 whereas I see from Nuget that the latest available HotFix is 12.0.83.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.