Unable to connect to server

Feb 11, 2012 at 3:37 PM

when I use

using (TaskService ts = new TaskService()) {}

if works perfectly locally. Now I would like to move to a server, so I start using:

using (TaskService ts = new TaskService("","testuser",null,"PaSSword", false)) {} or

using (TaskService ts = new TaskService("","testuser",null,"PaSSword", true)) {} or

using (TaskService ts = new TaskService("","testuser","","PaSSword", false)) {}

But now I never get a connection. When I do on the other hand:

schtasks /query /S /U testuser /P PaSSword

I have no problem. Does anybody have a clue what I'm doing wrong?

Feb 14, 2012 at 2:26 PM

I figured it out, thanks.

Feb 15, 2012 at 2:59 PM

What was your solution?

Feb 23, 2012 at 12:10 AM

I use Windows 7 connecting to Windows 2008R2.

First UAC must be disabled on Windows 2008R2 otherwise access denied keeps apearing.

When I started using the hostname (computername) instead of the IPaddress, all worked.