GetRemoteServer using Cassia

51 views
Skip to first unread message

srikanth

unread,
Feb 2, 2010, 6:29:15 AM2/2/10
to Cassia Users
Hi Dan,

ITerminalServer server=its.GetRemoteServer("MOD5");

server.Open();
if(server.IsOpen)
{
Console.WriteLine("Connected");

}

With above code I was able to connect to "MOD5",but when I try to
access sessions or process Iam getting an Exception "Access is
Denied".

How to overcome this issue?

Thanks,
Srikanth.

Dan Ports

unread,
Feb 2, 2010, 8:58:56 AM2/2/10
to cassia...@googlegroups.com
Srikanth,

This sounds like a permissions issue. Can you verify that the user account that your code is running under has permissions to query session information on the remote machine?

Are the machine running the code and MOD5 part of a domain? What versions of Windows are they running?

Dan


--
You received this message because you are subscribed to the Google Groups "Cassia Users" group.
To post to this group, send email to cassia...@googlegroups.com.
To unsubscribe from this group, send email to cassia-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cassia-users?hl=en.


srikanth gundala

unread,
Feb 2, 2010, 10:54:25 PM2/2/10
to cassia...@googlegroups.com
Dan,

      My code is running under administrator account,MOD5 is part of domain and we can access it directly through Remote Desktop option in Windows.

Iam trying to access sessions from Windows 2008 Standard--------------->Windows 2008 Standard.

Thanks,
Srikanth.

Dan Ports

unread,
Feb 3, 2010, 11:24:03 AM2/3/10
to cassia...@googlegroups.com
A few more questions:
  • Just to clarify -- your code is running under an account that is an administrator on MOD5, right?
  • What version of Cassia are you using?
  • Which line of code throws the access denied exception? GetSessions()? GetProcesses()? Accessing a particular property on ITerminalServicesSession?
Thanks,
Dan

srikanth gundala

unread,
Feb 3, 2010, 11:05:01 PM2/3/10
to cassia...@googlegroups.com
Dan,

  • Yes,My code is running under an that is an administrator on "MOD2" and i want to access "MOD5" from "MOD2".
  • My Cassia download has name Cassia-2[1].0.0.60
  • GetSessions(),GetProcesses() is throwing the exception.
Thanks,
Srikanth.

Dan Ports

unread,
Feb 8, 2010, 2:44:21 PM2/8/10
to cassia...@googlegroups.com
Are you running the code with elevated permissions (e.g. right-click, Run as administrator)? If not, that might be your problem.

srikanth gundala

unread,
Feb 8, 2010, 11:32:20 PM2/8/10
to cassia...@googlegroups.com
   Dan,

              I tried with elevated permissions, still Iam getting the same Exception and i even did turn off the Windows Firewall.

 Thanks,
 Srikanth.

Dan Ports

unread,
Feb 10, 2010, 8:13:18 PM2/10/10
to cassia...@googlegroups.com
If possible, can you run your code on MOD5 using GetLocalServer() and see whether you run into the same issue?

srikanth gundala

unread,
Feb 16, 2010, 11:23:07 PM2/16/10
to cassia...@googlegroups.com
Dan,

    I ran my code on MOD5 using GetLocalServer() and there are no issues,i was able to access process and sessions.

Regards,
Srikanth.

Dan Ports

unread,
Feb 17, 2010, 9:31:24 AM2/17/10
to cassia...@googlegroups.com
So when you run the application on MOD2 using GetRemoteServer() under the exact same user account you are using on MOD5 and with elevated permissions, you get the access denied exception? Just want to make sure I understand the situation.

srikanth gundala

unread,
Feb 18, 2010, 11:17:45 PM2/18/10
to cassia...@googlegroups.com
Dan,

     Yes,U are correct..

Regards,
Srikanth.

Dan Ports

unread,
Feb 24, 2010, 6:29:09 PM2/24/10
to cassia...@googlegroups.com
What happens if you run the built-in Terminal Services Manager (Remote Desktop Manager on 2008 R2) on MOD2 under the same user account and try to connect to MOD5? Does it work correctly?

Dan Ports

unread,
Feb 24, 2010, 6:44:49 PM2/24/10
to cassia...@googlegroups.com
Also, you said that MOD5 is in a domain -- is MOD2 in that same domain? Is the account you are trying to run the code under a local account on MOD5 or a domain account?
Reply all
Reply to author
Forward
0 new messages