Udemy
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
Development
Web Development Data Science Mobile Development Programming Languages Game Development Database Design & Development Software Testing Software Engineering Development Tools No-Code Development
Business
Entrepreneurship Communications Management Sales Business Strategy Operations Project Management Business Law Business Analytics & Intelligence Human Resources Industry E-Commerce Media Real Estate Other Business
Finance & Accounting
Accounting & Bookkeeping Compliance Cryptocurrency & Blockchain Economics Finance Finance Cert & Exam Prep Financial Modeling & Analysis Investing & Trading Money Management Tools Taxes Other Finance & Accounting
IT & Software
IT Certification Network & Security Hardware Operating Systems Other IT & Software
Office Productivity
Microsoft Apple Google SAP Oracle Other Office Productivity
Personal Development
Personal Transformation Personal Productivity Leadership Career Development Parenting & Relationships Happiness Esoteric Practices Religion & Spirituality Personal Brand Building Creativity Influence Self Esteem & Confidence Stress Management Memory & Study Skills Motivation Other Personal Development
Design
Web Design Graphic Design & Illustration Design Tools User Experience Design Game Design Design Thinking 3D & Animation Fashion Design Architectural Design Interior Design Other Design
Marketing
Digital Marketing Search Engine Optimization Social Media Marketing Branding Marketing Fundamentals Marketing Analytics & Automation Public Relations Advertising Video & Mobile Marketing Content Marketing Growth Hacking Affiliate Marketing Product Marketing Other Marketing
Lifestyle
Arts & Crafts Beauty & Makeup Esoteric Practices Food & Beverage Gaming Home Improvement Pet Care & Training Travel Other Lifestyle
Photography & Video
Digital Photography Photography Portrait Photography Photography Tools Commercial Photography Video Design Other Photography & Video
Health & Fitness
Fitness General Health Sports Nutrition Yoga Mental Health Dieting Self Defense Safety & First Aid Dance Meditation Other Health & Fitness
Music
Instruments Music Production Music Fundamentals Vocal Music Techniques Music Software Other Music
Teaching & Academics
Engineering Humanities Math Science Online Education Social Science Language Teacher Training Test Prep Other Teaching & Academics
AWS Certification Microsoft Certification AWS Certified Solutions Architect - Associate AWS Certified Cloud Practitioner CompTIA A+ Cisco CCNA Amazon AWS AWS Certified Developer - Associate CompTIA Security+
Photoshop Graphic Design Adobe Illustrator Drawing Digital Painting InDesign Character Design Canva Figure Drawing
Life Coach Training Neuro-Linguistic Programming Mindfulness Personal Development Personal Transformation Meditation Life Purpose Coaching Neuroscience
Web Development JavaScript React CSS Angular PHP WordPress Node.Js Python
Google Flutter Android Development iOS Development Swift React Native Dart Programming Language Mobile Development Kotlin SwiftUI
Digital Marketing Google Ads (Adwords) Social Media Marketing Google Ads (AdWords) Certification Marketing Strategy Internet Marketing YouTube Marketing Email Marketing Retargeting
SQL Microsoft Power BI Tableau Business Analysis Business Intelligence MySQL Data Analysis Data Modeling Big Data
Business Fundamentals Entrepreneurship Fundamentals Business Strategy Online Business Business Plan Startup Freelancing Blogging Home Business
Unity Game Development Fundamentals Unreal Engine C# 3D Game Development C++ 2D Game Development Unreal Engine Blueprints Blender
30-Day Money-Back Guarantee

This course includes:

  • 1.5 hours on-demand video
  • 10 downloadable resources
  • Full lifetime access
  • Access on mobile and TV
Development Software Engineering Windows Services

Windows Service Programming, Debugging, Installing in C#.Net

Create Windows Services on in C# .Net and Visual Studio, Windows service debugging techniques
Rating: 4.1 out of 54.1 (318 ratings)
17,083 students
Created by Naeem Akram
Last updated 3/2020
English
English
30-Day Money-Back Guarantee

What you'll learn

  • Create new Windows Services in C# .Net which run in background
  • Debug & Maintain Existing Windows Services in C#
  • Use Apache Log4Net logging library in a C# Project
  • Use InnoSetup to create setup installer for installing Windows Services on non production machines

Course content

6 sections • 29 lectures • 1h 42m total length

  • Preview02:58
  • Preview01:49
  • Preview03:48
  • Preview03:36
  • Basic concepts about Windows Services
    4 questions

  • Preview02:35
  • Adding an installer, Service Process Installer & Service Installer in C# .Net
    04:08
  • Brief overview of the Windows service code in C# .Net
    02:31
  • Preview04:46
  • Preview02:59
  • Uninstall a Windows Service
    1 page
  • Windows Service Programming Primer
    6 questions

  • Launching debugger on service runtime
    05:31
  • Attach debugger to an already running process
    02:25
  • Preview02:19
  • Apache Log4Net Library: add a reference & setup config file
    04:00
  • How to write information to text log file with Debug and Error methods
    03:02
  • Demo: Using Log4Net logging library in Windows Service
    05:30
  • Debugging Windows Services
    3 questions

  • Creating a Periodic Data Update Windows Service in Visual Studio & C# .Net
    03:21
  • Preview01:07
  • Creating a File System Watcher Windows Service in Visual Studio & C# .Net
    06:05
  • Preview03:53

  • Change service settings in config file to change service behavior on start
    03:00
  • Exploring the Windows Service config file XML
    03:17
  • Interacting with Windows Service using ServiceController in C# .Net
    06:10
  • Using ServiceController to Start/Stop a Windows Service in C# .Net
    06:37

  • Install a Windows service with SC.exe from command prompt
    02:08
  • Preview01:02
  • Creating a Windows Service installer with Inno Setup
    07:29
  • Preview01:48
  • Preview03:20

Requirements

  • Basic C# .Net programming language

Description

This course teaches you how to create Windows service in Visual Studio in C# .Net. Multiple techniques to debug a Windows Service in Visual Studio. Windows Services are a key component of the Microsoft Windows operating system.

The course is divided in various sections.

Introduction to Windows Service Programming in C#

You will learn the definition and anatomy of a Windows Service application. In the past NT service was the term used for a WIndows Service. You will also understand the difference between a Windows Service and other application types like console application. This section is not dependent on any programming language like C#.Net or C++. You will learn what is Windows Service Control Manager(SCM) and how to run it from the run prompt. SCM shows a Windows Services List.

Windows Service Programming in C# .Net Primer

In section two you will create a new Windows Service project in Visual Studio, and utilize installutil to install or uninstall a Windows Service. InstallUtil comes bundled with .Net framework. I'll show you what is Windows Service Control Manager. What are Windows Service statuses, login types, and service startup types. A Windows server service is same like a Windows NT service.

After this you will open the Windows Event Viewer to see the events generated by your newly born service.

Windows Service Debugging Techniques in Visual Studio and C# .Net

In section three you will learn how to debug a C# .Net based Windows Service program in Visual Studio.

Techniques for setting breakpoints and getting inside the C# .Net code to add watches for debugging purposes will be shown.

You will also see how to integrate Apache Log4Net logging library into your C# .Net Windows Service project. Apache Log4Net is a free & open source library and it lets you generate rolling log file, it is based on Log4J library.

Practical usages of Windows Service

In the next section you will look into a few real world scenarios like a file synchronization Windows service with FileSystemWatcher and a periodic data update service(similar to an ETL) with System.Threading.Timer. File sync type services were once very popular among password synchronization applications for updating domain passwords into online portals based on password filter related events.

Advanced Windows Service Programming

Next section is about topics like changing values in Windows Service configuration(app.config) and using .Net framework ServiceController class. In this section we are going to create an admin application for a Windows Service. This application will have the ability to start/stop a service and get service status as well. We will use C# .Net and WinForms for this purpose. The concepts shown herein will be applicable to WPF applications as well.

Installing a Windows Service with Inno Setup

Last section was added on student demand. It is about creating an installer to install Windows Service on a client machine. We will use free software InnoSetup for this purpose. I'll show you how to use SC.exe to perform various Windows Service control related operations from the command line. It is mandatory to know how to create windows service command line using SC command. I also show you how to install a windows service without installutil.

Creating & maintaining Windows Services in C# .Net is very easy as compared to C++ based services. Windows Services are run not only on Windows Servers, but on desktop machines as well. Their usefulness is universal.

Windows Services are an advanced C# and OS concept. I learned Windows Service programming the hard way, on my own. You sir! can take advantage of my experience and learn it quickly by joining this course. Sign up and I will see you inside!

Who this course is for:

  • Fresh or experienced programmers with little to no experience in C# .Net Windows Service programming
  • Programming students who want to learn how background services work

Instructor

Naeem Akram
Test Engineer Sr.
Naeem Akram
  • 4.4 Instructor Rating
  • 1,624 Reviews
  • 25,780 Students
  • 5 Courses

I am A person with many talents and interests, ranging from gardening to programming and poetry to cooking. 

Right now I'm working as a Software Test Engineer. On my job I use Microsoft Coded UI, Selenium, and Appium for creating test automation scripts. It is also a part of my job to maintain these automation scripts and run them via CI/CD using TFS. Apart from teaching, I'm also learning how actively on Udemy and my core interests are Azure Devops.

I've been writing computer software code(C++, C# .Net) since 2006, creating awesome Android apps since 2012. I've been working as a freelance software developer since Nov. 2012. 

I've extensively worked on network communications, computer telephony integration(CTI) using Microsoft TAPI 2.x and 3.x, and LDAP server programming(Active Directory). Android app development has been my focus as a freelancer, I've created and published several apps for clients and a couple for myself on Google Play store.

I've been sharing my knowledge through my blogs, and I am confident its time share more things that I've experienced with the world in a comprehensive video format. 

  • Udemy for Business
  • Teach on Udemy
  • Get the app
  • About us
  • Contact us
  • Careers
  • Blog
  • Help and Support
  • Affiliate
  • Terms
  • Privacy policy
  • Cookie settings
  • Sitemap
  • Featured courses
Udemy
© 2021 Udemy, Inc.