Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6472163
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:18:40+00:00 2026-05-25T06:18:40+00:00

Today I built my first windows service in c#. I have a few problems

  • 0

Today I built my first windows service in c#.

I have a few problems that I will be happy and thanksfull if you help me.

1)
When I install my service, it is runing and everything, but it wont show up in Windows Task Manager. any one knows why?

2) If I am trying to put a system tray, I can’t do it – because I cant put an icon. in window service there is no System.Drawing.. what can I do about it?

3)

protected override void OnContinue()
{
    //eventLog1.WriteEntry("In OnContinue.");
}

What does this “OnContinue” does?

I was not able to understand it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T06:18:41+00:00Added an answer on May 25, 2026 at 6:18 am

    Service Not Showing up in Windows Task Manager

    I’m assuming that you are running on Vista/Windows 7 and that your service is not running as your account. Because of that, you need to say “show processes from all users” on the “Processes” tab of Task Manager and you should see your service then (probably running under one of the default Windows accounts).

    You won’t see your service in the “Applications” tab, services do not appear there.

    Icon Tray for Windows Service

    From Windows Vista on, a service is not allowed to interact with the desktop; even if you could still do this, which one do you interact with (there can be multiple users logged onto the machine with multiple desktops, think Terminal Server/multiple Remote Desktop Sessions)?

    The way that you show an icon for the service is to create a program that communicates with your service (using something like WCF or Remoting) which is responsible for showing the icon in the tray.

    Remember, your service more than likely doesn’t need an icon in the tray, create a plugin for the Microsoft Management Console instead and communicate with the service through WCF/Remoting.

    OnContinue

    From the documentation for the OnContinue method:

    When implemented in a derived class, OnContinue runs when a Continue
    command is sent to the service by the Service Control Manager (SCM).
    Specifies actions to take when a service resumes normal functioning
    after being paused.

    Basically, if your service can be paused (not stopped) then this is called when the service is resumed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is my first site built in Silverstripe, I have been developing the site
Today when I built my project with the --debug=v I noticed something that I
First sorry if I should have added this to my earlier question today ,
We have two systems with built in GPS today I spent a little time,
Today I discovered that my fresh installation of Apache HTTP Server is able to
Today I experienced a weird problem while trying to remotely debug an application built
First deployment to AppHarbor today. After some initial work getting it to build, I
We have a very large GWT project that results in a monolithic app about
Is There any built in function in c# to compare Compare today's datetime to
Already asked on the Evil Exchange, but as always that was no help. I'm

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.