question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Trying to connect to a remote machine but I always have access denied error

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:16 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
Hung-Yangcommented, Dec 4, 2018

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!

0reactions
Hung-Yangcommented, Dec 4, 2018

What are the Windows versions of the two machines?

Server slite is windows server 2012 R2 and remote site is server 2003 and library used in 2012R2

Read more comments on GitHub >

github_iconTop Results From Across the Web

FIX: The remote connection was denied in Windows 10/11
How can I fix the remote connection was denied error? · 1. Change Remote settings · 3. Delete local and roaming profile ·...
Read more >
How Do I Fix Remote Desktop Access Is Denied?
Method 1. Add your user into Remote Desktop Users local group ... An unauthorized account can be the main cause of Windows Remote...
Read more >
User can't authenticate or must authenticate twice
This article addresses several issues that can cause problems that affect user authentication. Access denied, restricted type of logon.
Read more >
How to troubleshoot remote event viewer access denied error
In the computer whose logs need to be accessed, open Registry Editor by entering regedit in the Run window. Navigate to HKEY_LOCAL_MACHINE ...
Read more >
Access Denied Errors when Connecting to the Remote ...
Often encountered when testing a connection to a new monitored server. It indicates insufficient permissions assigned to the account being used to connect...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found