2012-01-05 58 views
1

我試圖在遠程Windows Server 2008終端服務器上運行Cassia庫。我調用的任何方法都會在下面得到響應。Cassia Library在調用任何方法時發生異常

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 

回答

0

我也遇到了這個錯誤。原來,如果沒有給定服務器的會話,它會引發這個異常。

嘗試在WCP shell中運行qwinsta /server <servername>。它應該返回「沒有會話存在*」。

我通過檢查「沒有更多數據」的異常消息來解決這個問題,如果是的話,不要拋出異常消息。這是毛病,但它是一個開源的DLL。

相關問題