TaskScheduler
TaskScheduler copied to clipboard
Not working when publishing
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:
It is throwing an error due to problems with the parameter values. What parameters are you providing to the constructor for TaskService?