TaskScheduler: Trying to connect to a remote machine but I always have access denied error
Hello, im trying to connect to a remote machine to get all task and im using:
using (TaskService ts = new TaskService(computer,user,domain,password)) { EnumFolderTasks(ts.RootFolder); }
but i have this error:
The request is not supported. (Exception from HRESULT: 0x80070032)
or access denied error, but the credentials is right.
Can anyone help me? Thanks
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 16 (9 by maintainers)
Hello,
thank for you to create this project , and i meet some problem as below.
im trying to connect to a remote machine by same code and same IIS machine as below , and using different version of Task Scheduler, then i get the different response.
TaskService ts = new TaskService(workstation, userName, domain, password, true);
when using version 2.8.6.0 will get response as incorrect user name or password.
and when i change to version 2.5.28 , then i get the right TaskService back.
But i still want to use the new version, so what can i do to fixed it?
thank you!