Open GoogleCodeExporter opened 8 years ago
Stack trace:
System.ComponentModel.Win32Exception: The system cannot find the file specified
at Cassia.Impl.NativeMethodsHelper.QuerySessionInformation[T](ITerminalServerHandle server, Int32 sessionId, WTS_INFO_CLASS infoClass, ProcessSessionCallback`1 callback)
at Cassia.Impl.TerminalServicesSession.GetClientIPAddress()
at Cassia.Impl.LazyLoadedProperty`1.get_Value()
at Cassia.Impl.TerminalServicesSession.get_ClientIPAddress()
at windowservice.LogoffHandler.ProcessPostLogoffEvents(Object state)
Original comment by whypurpl...@gmail.com
on 13 Apr 2012 at 8:30
You'll most often see this exception when you're attempting to access a
property of a session that no longer exists. Given that you're running some
logic on session logoff (based on your stack trace), this result is not
uncommon. The solution would be for you to catch the Win32Exception that is
thrown and handle it appropriately.
It would be better if the library threw an exception with a more specific error
message though.
Original comment by danports
on 13 Apr 2012 at 1:24
Issue 68 has been merged into this issue.
Original comment by danports
on 6 Jun 2013 at 12:39
Original issue reported on code.google.com by
whypurpl...@gmail.com
on 13 Apr 2012 at 7:52