kennethologist / cassia

Automatically exported from code.google.com/p/cassia
0 stars 0 forks source link

The system cannot find the file specified #68

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I used cassia to logoff RDP users, and called GetSessions() to re-retrieve all 
users, sometimes it will throw following exceptions, can you help to check?

Source Error: 

An unhandled exception was generated during the execution of the current web 
request. Information regarding the origin and location of the exception can be 
identified using the exception stack trace below.  

Stack Trace: 

[Win32Exception (0x80004005): The system cannot find the file specified]
   Cassia.Impl.NativeMethodsHelper.QuerySessionInformation(ITerminalServerHandle server, Int32 sessionId, WTS_INFO_CLASS infoClass, ProcessSessionCallback`1 callback) in D:\Cassia-2.0.0.60\Source\Cassia\Impl\NativeMethodsHelper.cs:42
   Cassia.Impl.NativeMethodsHelper.QuerySessionInformationForString(ITerminalServerHandle server, Int32 sessionId, WTS_INFO_CLASS infoClass) in D:\Cassia-2.0.0.60\Source\Cassia\Impl\NativeMethodsHelper.cs:51
   Cassia.Impl.TerminalServicesSession..ctor(ITerminalServer server, Int32 sessionId, String windowStationName, ConnectionState connectionState) in D:\Cassia-2.0.0.60\Source\Cassia\Impl\TerminalServicesSession.cs:47
   Cassia.Impl.TerminalServicesSession..ctor(ITerminalServer server, WTS_SESSION_INFO sessionInfo) in D:\Cassia-2.0.0.60\Source\Cassia\Impl\TerminalServicesSession.cs:85
   Cassia.Impl.TerminalServer.GetSessions() in D:\Cassia-2.0.0.60\Source\Cassia\Impl\TerminalServer.cs:41
   TSUserMgt._Default.ListAllUsers(DataSetUser user, String ServerName) +206
   TSUserMgt._Default.BindGridView() +197
   TSUserMgt._Default.ButtonLogOff_Click(Object sender, EventArgs e) +553
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

Original issue reported on code.google.com by zhujia1...@gmail.com on 6 Jun 2013 at 2:14

Attachments:

GoogleCodeExporter commented 9 years ago
Yep, this exception is raised when the session no longer exists or is in the 
process of being logged off -- see issue 59.

Original comment by danports on 6 Jun 2013 at 12:39