Click here to Skip to main content
15,912,400 members
Home / Discussions / C#
   

C#

 
QuestionIs "Type" serializable? [SOLVED] Pin
Richard Andrew x6421-Dec-11 18:05
professionalRichard Andrew x6421-Dec-11 18:05 
AnswerRe: Is "Type" serializable? Pin
Not Active21-Dec-11 18:41
mentorNot Active21-Dec-11 18:41 
GeneralRe: Is "Type" serializable? Pin
Richard Andrew x6421-Dec-11 18:44
professionalRichard Andrew x6421-Dec-11 18:44 
GeneralRe: Is "Type" serializable? Pin
SledgeHammer0122-Dec-11 6:29
SledgeHammer0122-Dec-11 6:29 
GeneralRe: Is "Type" serializable? Pin
Richard Andrew x6422-Dec-11 7:26
professionalRichard Andrew x6422-Dec-11 7:26 
AnswerRe: Is "Type" serializable? [SOLVED] Pin
PIEBALDconsult22-Dec-11 5:13
mvePIEBALDconsult22-Dec-11 5:13 
GeneralRe: Is "Type" serializable? [SOLVED] Pin
Richard Andrew x6422-Dec-11 7:27
professionalRichard Andrew x6422-Dec-11 7:27 
QuestionHow to prevent remote log off Pin
turbosupramk321-Dec-11 8:57
turbosupramk321-Dec-11 8:57 
Hello,

I'm in a large organization, and sometimes have things running on a server that I have to leave running and my profile will go idle.

How can I catch a system event for remote log off? That way I can auto answer it and cancel the remote log off. The screen I would see when someone is trying to log me off is

http://img841.imageshack.us/img841/9306/disconnected1.jpg[^]

and if I don't respond in 30 seconds, I can be kicked. The organization is far too large to stop this at a global level, so how can I protect my processes and have them continue to run without being booted?

I wrote a form that will catch the the following

SystemEvents.SessionEnding += new SessionEndingEventHandler(sessionHandler);

but that does not seem to be the event that is occurring when a remote log off occurs?

This is for server 2008.

Thanks for reading!

modified 21-Dec-11 15:08pm.

AnswerRe: How to prevent remote log off Pin
SledgeHammer0121-Dec-11 8:58
SledgeHammer0121-Dec-11 8:58 
GeneralRe: How to prevent remote log off Pin
turbosupramk321-Dec-11 9:06
turbosupramk321-Dec-11 9:06 
GeneralRe: How to prevent remote log off Pin
SledgeHammer0121-Dec-11 10:15
SledgeHammer0121-Dec-11 10:15 
GeneralRe: How to prevent remote log off Pin
turbosupramk321-Dec-11 10:44
turbosupramk321-Dec-11 10:44 
GeneralRe: How to prevent remote log off Pin
SledgeHammer0121-Dec-11 11:41
SledgeHammer0121-Dec-11 11:41 
GeneralRe: How to prevent remote log off Pin
turbosupramk321-Dec-11 11:47
turbosupramk321-Dec-11 11:47 
GeneralRe: How to prevent remote log off Pin
SledgeHammer0121-Dec-11 11:55
SledgeHammer0121-Dec-11 11:55 
AnswerRe: How to prevent remote log off Pin
fjdiewornncalwe21-Dec-11 9:04
professionalfjdiewornncalwe21-Dec-11 9:04 
GeneralRe: How to prevent remote log off Pin
turbosupramk321-Dec-11 9:08
turbosupramk321-Dec-11 9:08 
GeneralRe: How to prevent remote log off Pin
fjdiewornncalwe21-Dec-11 9:48
professionalfjdiewornncalwe21-Dec-11 9:48 
GeneralRe: How to prevent remote log off Pin
turbosupramk321-Dec-11 10:01
turbosupramk321-Dec-11 10:01 
AnswerRe: How to prevent remote log off Pin
Dave Kreskowiak21-Dec-11 10:22
mveDave Kreskowiak21-Dec-11 10:22 
GeneralRe: How to prevent remote log off Pin
turbosupramk321-Dec-11 10:45
turbosupramk321-Dec-11 10:45 
AnswerRe: How to prevent remote log off Pin
jschell22-Dec-11 8:15
jschell22-Dec-11 8:15 
QuestionXML from URL Causes Internal Server Error (500) Pin
Enochs21-Dec-11 5:41
Enochs21-Dec-11 5:41 
AnswerRe: XML from URL Causes Internal Server Error (500) Pin
fjdiewornncalwe21-Dec-11 7:10
professionalfjdiewornncalwe21-Dec-11 7:10 
GeneralRe: XML from URL Causes Internal Server Error (500) Pin
Enochs21-Dec-11 9:02
Enochs21-Dec-11 9:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.