TaskScheduler icon indicating copy to clipboard operation
TaskScheduler copied to clipboard

Not working when publishing

Open Mrgaton opened this issue 6 months ago • 1 comments

Exception:

Unhandled exception. System.TypeInitializationException: The type initializer for 'Microsoft.Win32.TaskScheduler.TaskService' threw an exception.
 ---> System.ArgumentException: Value does not fall within the expected range.
   at Microsoft.Win32.TaskScheduler.V2Interop.ITaskService.Connect(Object serverName, Object user, Object domain, Object password)
   at Microsoft.Win32.TaskScheduler.TaskService.Connect()
   at Microsoft.Win32.TaskScheduler.TaskService..ctor()
   at Microsoft.Win32.TaskScheduler.TaskService.get_Instance()
   at Microsoft.Win32.TaskScheduler.TaskService..cctor()
   --- End of inner exception stack trace ---
   at Microsoft.Win32.TaskScheduler.TaskService.GetLibraryVersionFromLocalOS()
   at Microsoft.Win32.TaskScheduler.TaskService.ResetHighestSupportedVersion()
   at Microsoft.Win32.TaskScheduler.TaskService..ctor()
   at Rage.Program.Main(String[] args)

Publish config:

Image

Mrgaton avatar Jul 06 '25 17:07 Mrgaton

It is throwing an error due to problems with the parameter values. What parameters are you providing to the constructor for TaskService?

dahall avatar Jul 08 '25 02:07 dahall