Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The system cannot find the file specified #68

Closed
GoogleCodeExporter opened this issue Aug 26, 2015 · 1 comment
Closed

The system cannot find the file specified #68

GoogleCodeExporter opened this issue Aug 26, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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

  • Changed state: Duplicate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant