Windows Services
Welcome to Windows Services section of C# Corner. In this section, you will find various Windows Services related source code samples, articles, tutorials, and tips.

RECENT POSTS

  • Create Windows Service and Send Mail Daily At Fixed Time Using C#

    This article explains how to create a Windows Service to schedule daily mail at a specified time.
  • Web API Self-Hosting Using Windows Service: Part 1

    In this article you will learn how to create a self-hosted Web API using a Windows Service.
  • How to Install Or Uninstall .NET Windows Service Using C#

    This article explains how to install or uninstall a .NET Windows Service using C#.
  • Adding Service Dependency on a Windows Service Through Registry or Visual Studio

    In this article, I will show how to set the dependencies on a Windows Service of a service or services through its registry or through Visual Studio.
  • Windows Service in C#

    This article is about Windows Services in the .Net Framework. We learn how to make and use a Windows Service in our C#.Net Framework applications.
  • WdCalendar JSON Feed Via ASP.Net WCF Service

    wdCalendar is a jQuery based Google calendar clone. It is free, easy to use, and has great features. This article covers a way you can provide a JSON feed using a WCF Service.
  • Deleting a file after 7 days using windows services

    Here I am Taking one directory “DeleteData” which contains some files. Now I want delete these files after 7 days. So I am using windows service, this can be automatically deleting files after 7 days. Once you started the service when ever you shutdown your system your service still running. This service never stopped until your setup uninstalled.
  • Printing From a Windows Service

    I got a requirement for printing using a Windows Service. So I searched the internet and found some examples and finally two of them worked for me, So I am posting the working ones here.
  • Launch Popup Every 15 Minutes in C#

    How to show a popup every 15 minutes
  • Windows Service Information Component

    This article is on a reusable Windows service information component, which queries and retrieves the Windows service information.
  • Service Explorer

    This program manages services running in your computer. You can use the GetServices method on the ServiceController class to retrieve a list of the services on a particular computer.
  • Different Ways to Call Webservice

    In this article we will learn to call a webservice using mainly two different approaches.
  • Running a Windows Service in Debug Mode

    This article helps in running the Windows Service in debug mode so that we can debug the service to check the flow of code or fixing any of the issues.
  • Websocket - Server Using HttpListener and Client With ClientWebSocket

    In this article you will see how to host a Websocket service as a windows service.
  • How to create Windows Service?

    How to create window services using .net
  • Windows Service - Quick Catch Up

    Here we will talk about the windows NT service, which enables you to create a long-running executable application that runs in a separate Windows session.
  • A XML Web service that update data into a Default table of the application

    Web Service are software program that use XML to exchange information with other software via common internet protocol. In simple sense, Web Services are means for interacting with objects over the Internet.
  • Deleting files in a directory after 7 days using Windows Services

    Here I am Taking one directory “DeleteData” which contains some files. Now I want delete these files after 7 days. So I am using windows service, this can be automatically deleting files after 7 days. Once you started the service when ever you shutdown your system your service still running. This service never stoped until your setup uninstalled.
  • Installing And Configuring The Windows Server AppFabric Cache Services

    Here you will see how to install and configure the Windows Server AppFabric Cache Services
  • Internet Watcher in .NET 3.5

    This is a Windows service to help you to know each time that you connected to and disconnected from the internet
  • Security Problem: Your files can be shared all over the Internet

    If your setup allows NetBIOS over TCP/IP, you have a security problem: Firstly, Your files can be shared all over the Internet And Secondly, Your logon-name, computer-name, and workgroup-name are visible to others.
  • Handling Longpath problem in Windows

    This article will describe how you can handle a longpath problem in Windows.
  • How to Implement OnCustomCommand Method in Windows Service Application

    In this article you will learn how to Implement OnCustomCommand Method in Windows Service Application.
  • Allow windows service to "Interact with desktop"

    Typically, services are designed to run unattended without any UI with any need to interact with desktop or any GUI application.
  • How to start or stop a Windows Service using C#

    How to start, stop, pause or restart a windows service dynamically using C#.