dahall / TaskScheduler

Provides a .NET wrapper for the Windows Task Scheduler. It aggregates the multiple versions, provides an editor and allows for localization.
MIT License
1.2k stars 191 forks source link

Cannot create Task within a AWS EC2 machine #971

Closed RafaelSolVargas closed 1 year ago

RafaelSolVargas commented 1 year ago

Describe the bug I'm hosting an .NET Framework 4.8 MVC in a AWS EC2 machine, within it, there is a IIS in front of the application.

To Reproduce I don't think that it's simple to reproduce, but here is the code: image

I added the notepad action just to test. This code works fine when running in localhost, but this error is thrown when running in EC2 image

The message error is: (39,4):Task:

Expected behavior The apps to start executing

Environment (please complete the following information):

dahall commented 1 year ago

This is very likely a permission problem with the OS. Registering tasks requires admin status. See this project's wiki for information about all rights required.

RafaelSolVargas commented 1 year ago

I changed the logon type to password and it worked, thanks!