You are here: Home / FAQ / Installation / Error: Unable to create scheduled task

Error: Unable to create scheduled task

Description

You will see this window during the installation:

If you select Yes, this error may appear:

Error has been logged: Unable to create scheduled tasks

System.IO.FileNotFoundException: The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
   at Microsoft.Win32.TaskScheduler.V2Interop.IRegisteredTask.get_Xml()
   at Microsoft.Win32.TaskScheduler.Task.GetV2Definition(TaskService svc, IRegisteredTask iTask, Boolean throwError)
   at Microsoft.Win32.TaskScheduler.Task.CreateTask(TaskService svc, IRegisteredTask iTask, Boolean throwError)
   at Microsoft.Win32.TaskScheduler.TaskCollection.V2TaskEnumerator.get_Current()
   at Microsoft.Win32.TaskScheduler.TaskFolder.<EnumerateFolderTasks>d__0.MoveNext()
   at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)
   at ManagedCustomActions.TaskScheduler.CreateDatabaseMaintenanceTask()
   at ManagedCustomActions.CustomAction.CreateScheduledTasks(Session session)
   at eWay.Core.Logger.InternalLogger.LogEntry(String message, Exception ex, LogEntryType entryType)
   at eWay.Core.Logger.InternalLogger.LogError(String message, Exception ex)
   at eWay.Core.Logger.LogError(String message, Exception ex)
   at ManagedCustomActions.CustomAction.CreateScheduledTasks(Session session)
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Microsoft.Deployment.WindowsInstaller.CustomActionProxy.InvokeCustomAction(Int32 sessionHandle, String entryPoint, IntPtr remotingDelegatePtr)
   at Microsoft.Deployment.WindowsInstaller.CustomActionProxy.InvokeCustomAction32(Int32 sessionHandle, String entryPoint, Int32 remotingDelegatePtr)
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)

Installation will be completed, but when you start Microsoft Outlook, eWay-CRM will not work correctly.

Version

All versions of eWay-CRM

Difficulty

High

Resolution

  1. You need to run Task Scheduler in Microsoft Windows - type "task scheduler" or "taskschd.msc" in Microsoft Windows Start menu.
  2. You will see the error dialog:
  3. You need to find incorrect task in the Windows Registry on this path:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree\
  4. Key with the name of task, in this case it is {4068AF45-DD94-4FDE-97B2-AD2FD6A4B21F}, need to be deleted from Registry.
  5. New installation will be successfully finished, now.