How to design a .net windows form application that never quit when user log out of Remote Desktop connection

StackOverflow https://stackoverflow.com/questions/9143196

Question

I am quite new to windows form app development. I have an app installed on a remote IIS server, this app is an agent that check and process job queue every 10 minutes.

But if I click "Start" - "Log off" on the server to disconnect my Remote Desktop connection session. The application quits as well.

Is there anyway to setup the windows form app to keep unless until a server restart or shutdown?

I know windows service applciation can do that but in this business case, windows service app will not be an alternative solution.

Was it helpful?

Solution

A Windows forms app just won't do what you're asking for. Forms apps run in the logged-on user context and stop executing when you log off. If you can't use a Windows service, you'll have to find another way.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top