Cassia Library giving exception when calling any methods on remote server

368 views
Skip to first unread message

Kennethologist

unread,
Jan 5, 2012, 2:18:49 AM1/5/12
to Cassia Users

I am trying to run the Cassia library on a remote Windows Server 2008
Terminal Server. Any methods I call I get the response below.

** No more data is available

Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.

Exception Details: System.ComponentModel.Win32Exception: No more data
is available

Stack Trace:

[Win32Exception (0x80004005): No more data is available]
Cassia.Impl.NativeMethodsHelper.GetSessionInfos(ITerminalServerHandle
server) +159 Cassia.Impl.TerminalServer.GetSessions() +103

Robert Gijsen

unread,
Jan 5, 2012, 12:58:44 PM1/5/12
to cassia...@googlegroups.com

I remember seeing that when the user running the tool does not have permissions to query the remote server. Check its RDP connector security, you'll need 'query' permissions at least, the other permissions are self-explaining.

Another thing, have you actually opened the connection to the server before querying sessions?

Sent from my HTC

--
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.

Dan Ports

unread,
Jan 5, 2012, 1:24:26 PM1/5/12
to cassia...@googlegroups.com
Permissions are certainly a potential issue, especially since application pool identities often have very limited permissions. Have you checked the permissions of the relevant application pool user? If you run the relevant code outside of IIS, does it work?

If you hadn't opened the connection to the server yet, you have gotten a more specific exception (InvalidOperationException: Connection to remote server not open...).

Dan

Dan Ports

unread,
Mar 1, 2012, 8:23:20 PM3/1/12
to cassia...@googlegroups.com
Kenneth,

Just out of curiosity, did you ever find a solution to this?

Dan

Kenneth Smith

unread,
Mar 2, 2012, 2:27:50 AM3/2/12
to cassia...@googlegroups.com
I did. Thanks Dan, I can't remember what I did exactly but I'm pretty certain it was related to impersonation.
 
Thanks again for a great library.

I would love to change the world but they won't give me the source code

Dan Ports

unread,
Mar 3, 2012, 9:35:19 PM3/3/12
to cassia...@googlegroups.com
OK, great, makes sense.

smanisca

unread,
Jul 10, 2012, 5:18:39 PM7/10/12
to cassia...@googlegroups.com
I just wanted to say thank you! because I was having a problem where everything was working when developing and debugging in Visual studio, but once I published the asp.net site the Cassia component wasn't working, but it also was not giving any errors/exceptions... The problem was the security account for the application pool.

On Thursday, January 5, 2012 1:24:26 PM UTC-5, Dan Ports wrote:
Permissions are certainly a potential issue, especially since application pool identities often have very limited permissions. Have you checked the permissions of the relevant application pool user? If you run the relevant code outside of IIS, does it work?

If you hadn't opened the connection to the server yet, you have gotten a more specific exception (InvalidOperationException: Connection to remote server not open...).

Dan

On Thu, Jan 5, 2012 at 12:58 PM, Robert Gijsen <robert...@gmail.com> wrote:

I remember seeing that when the user running the tool does not have permissions to query the remote server. Check its RDP connector security, you'll need 'query' permissions at least, the other permissions are self-explaining.

Another thing, have you actually opened the connection to the server before querying sessions?

Sent from my HTC

On Jan 5, 2012 6:52 PM, "Kennethologist" <kenneth...@gmail.com> wrote:

I am trying to run the Cassia library on a remote Windows Server 2008
Terminal Server. Any methods I call I get the response below.

** No more data is available

Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.

Exception Details: System.ComponentModel.Win32Exception: No more data
is available

Stack Trace:

[Win32Exception (0x80004005): No more data is available]
Cassia.Impl.NativeMethodsHelper.GetSessionInfos(ITerminalServerHandle
server) +159 Cassia.Impl.TerminalServer.GetSessions() +103

--
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+unsubscribe@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/cassia-users?hl=en.

--
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+unsubscribe@googlegroups.com.

Dan Ports

unread,
Jul 10, 2012, 8:19:10 PM7/10/12
to cassia...@googlegroups.com
Glad to hear that the conversation was helpful!

To view this discussion on the web visit https://groups.google.com/d/msg/cassia-users/-/-n1tbA8kIzcJ.

To post to this group, send email to cassia...@googlegroups.com.
To unsubscribe from this group, send email to cassia-users...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages