Questions tagged [windows-services]

Windows services are background service processes run by the Service Control Manager on Windows NT based operating systems, similar to daemons or UNIX services.

windows-services
Filter by
Sorted by
Tagged with
0 votes
0 answers
227 views

How to run PowerShell directory watcher script as a service correctly?

I have the following script that watches for appearance of new files in given directory, then renames the appeared file to its md5 hash $watcher = New-Object System.IO.FileSystemWatcher $watcher.Path =...
Axel's user avatar
  • 119
0 votes
1 answer
461 views

ASP.NET Core minimal API Windows service with OnPause functionality?

Currently I am using an ASP.NET Core Web API as a Windows service like this: var builder = WebApplication.CreateBuilder(); builder.Host.UseWindowsService(); var app = builder.Build(); app.MapGet("...
Skorraxx's user avatar
0 votes
0 answers
186 views

GRR windows client installation error: FleetspeakService failed to start

I have started GRR server with docker in a kali linux and downloaded windows installation binary. Then, when I'm trying to install GRR windows client (msi installer) I get following error: GRR windows ...
David Ciria's user avatar
0 votes
0 answers
70 views

Wix4 getting error 1053 when trying to install a batch as service

I'm trying to build an MSI installer for a nodejs application that needs to run on a windows machine as a service. The issue is I have multiple environment variables that need to be set for the ...
AstralJaeger's user avatar
1 vote
0 answers
107 views

Windows Service never calls OnStop() and OnShutdown() method during shutdown

I have a simple windows service and I need to do some operation when either service is stopped or machine is shutdown. See sample code below: namespace SimpleService { class TestService : ...
Mohd Ahmed's user avatar
  • 1,452
0 votes
0 answers
29 views

System.Timers.Timer stops by itself in a windows service

Hello I'm doing a check on a windows service that seems to stop doing its work after a undeterminate amount of time. The service keeps running but method OnElapsedTime stops getting executed, i know ...
albe's user avatar
  • 139
0 votes
1 answer
170 views

Windows service not connecting with API

I have an ASP.Net API i've created. It accesses a database, which I have to use a VPN to connect with. The API will work just fine while doing this. I then created a windows service which receives a ...
Dave's user avatar
  • 23
0 votes
1 answer
161 views

Run UE5 server as a windows-service with regular win tools

There was a need for the deployment of the Unreal Engine server (v5.1.1) to start it as a windows service on win10. An attempt to package it through the regular Windows service tool (sc create...) ...
Anton's user avatar
  • 185
0 votes
0 answers
55 views

VS 2022 Adding Web Reference in WinService project

I'm working on a migration project (Windows service) and I tried updating the web reference, which is pointing to the old server, by deleting the existing and adding a new one. I tried following the ...
Landon's user avatar
  • 65
1 vote
1 answer
238 views

Using Signal R with Windows Service

I have created a signalR server and i can be able to connect from console application but I have to connect SignalR from Windows Service public partial class WindowsServiceManager : ServiceBase { ...
ardayz's user avatar
  • 31
0 votes
0 answers
96 views

Error when consuming an api from a windows service created in .NET

I am having problems consuming my application on localhost from the Windows service that I just created because when trying to consume the API I cannot verify the return value when saving it in a Txt ...
Leonardo Carrasco Velazquez's user avatar
0 votes
1 answer
166 views

Windows Service Error: 1053, Can't figure out why

I've been working on creating a windows service that receives a JSON result from an API. It then takes that data, deserializes it into a list of objects. Then uses information from those objects to ...
Dave's user avatar
  • 23
0 votes
1 answer
597 views

Running windows service writen in C# on .NET framework 4.7.2 on computer without installed .NET

I'm wondering if I can start a Windows service written in C# on .NET Framework 4.7.2 on a Windows computer that doesn't have .NET Framework installed? Is there any way to run such a service? I ...
MrNemeczek's user avatar
0 votes
0 answers
2k views

How to troubleshoot "exception has been thrown by the target of an invocation" error in a Windows service running in the background C#?

I'm receiving an error when running a Windows service in the background, but no errors are shown when debugging with an attached debugger. Although I added logging statements to each method and catch ...
Vasundhara's user avatar
0 votes
0 answers
353 views

Windows Worker Service Error- A timeout was reached, service to connect

I have created a windows worker service. But the service is timing out while starting up. To troubleshoot the issue, I have created a service without implementing anything funtionality. The service is ...
aka baka's user avatar
  • 213
1 vote
0 answers
101 views

How to host REST Service along with an ASP.NET Core web site in same domain on IIS?

I want the be able to access a (REST) JSON Transcoding (HTTP/1) gRPC Service and an ASP.NET Core web site in the same IIS domain. Either running two Different projects (if possible) where the gRPC ...
Exquirentibus's user avatar
1 vote
1 answer
396 views

win32serviceutil issue with starting a custom service

I'm trying to create a windows service by using the code below. The global variables are defined, and the imports are properly imported. The main bulk of the code is: class MyHandler(...
Yafim Simanovsky's user avatar
1 vote
2 answers
216 views

What other prerequisites are necessary to run my service worker as a service on a Windows Server virtual machine that utilizes the Selenium webdriver?

I have developed a service worker using .NET 7, and it successfully runs when tested through dotnet build. However, when attempting to publish the code and run it as a Windows service in the ...
Ahune ajé o ahe's user avatar
1 vote
0 answers
276 views

Python win32serviceutil ModuleNotFoundError

I created a Python win32serviceutil service following the excellent guide at https://thepythoncorner.com/posts/2018-08-01-how-to-create-a-windows-service-in-python/. It will install just fine C:\›...
Gotenks's user avatar
  • 377
0 votes
0 answers
120 views

C# run windows service on different time of different timezone

Writing a windows service to run multiple times a day on different time <add key="TimeZoneScheduledTime"value="UTC+04:00|06:00,UTC+05:30|08:00"/> Getting time value from app....
Ghanshyam Singh's user avatar
0 votes
0 answers
81 views

EF Core fails in Windows Service but works in console app

I created a windows service, which uses EF Core 3.1.32 to access some data. I had to fall back to 3.1.32, because the service also hosts a WCF service, and I am stuck with .NET Framework 4.8. All ...
Roman's user avatar
  • 513
1 vote
0 answers
598 views

.NET 7.0 worker services: run it only as a Windows service and not as a console application?

Older .NET framework Windows service applications could not be executed in any other way other than as a registered service on a Windows machine but I've noticed that .NET worker service applications ...
whatever's user avatar
  • 3,082
1 vote
1 answer
345 views

Can Kestrel be used on Windows Server 2016 to host gRPC Service?

I realize now that IIS cannot be used on Windows Server 2016 to host a gRPC Service (I'd need Windows Server 2022). However .. the somewhat ambiguous MS docs seem to indicate that Kestrel could be ...
Exquirentibus's user avatar
1 vote
1 answer
706 views

how to host ASP.NET Core 7.0 gRPC Server with SSL on Windows Server 2016?

I'm getting conflicting information depending on where I look as to whether IIS 10 can host an ASP.NET Core 7.0 gRPC Server application as it seems to only support TLS 1.2 and possibly a limited ...
Exquirentibus's user avatar
0 votes
0 answers
147 views

Accessing WinRT APIs from within .NET core app running as service in Windows 11

I'm trying to read the title from the current media session in Windows 10/11. The following example runs fine if I execute it from within the IDE or manually start the published .exe from console. But ...
Seraksab's user avatar
0 votes
1 answer
52 views

MS word automatization problem via windows service

In my project i'm using com msword library (MSO.DLL) for do something with word documents. In next code i can't getting document pointer from open method when i start my application as Windows Service....
Naydachi Kamikadze's user avatar
0 votes
1 answer
616 views

Kafka producer in C# as Windows Service

I created a Kafka producer, using Confluent library, as a console app that ran as a scheduled task to submit some error records to Kafka broker periodically. Worked fine. I have to convert this to run ...
NoBullMan's user avatar
  • 2,108
0 votes
1 answer
522 views

How to Ldap Connection pool, with windows service, and reuse same connection?

The System create a connection pool to connect and manage connections to the active directory. The goal is to create and reuse only one connection to a configured ad instead of to create for each ...
Washington's user avatar
0 votes
1 answer
275 views

c# .net 6.0 windows service - httpclient calls after a period throws timeout exception

I have a .Net 6.0 windows service which is sending data to an api every few seconds. The windows service works fine for a period of time. However, after a while maybe 24 hours it suddenly starts ...
AndrewE's user avatar
1 vote
1 answer
148 views

Trying to start Django on Apache: Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding

the goal was to run my django project, which is created in a virtual environment from "virtualenv", on apache. I followed this tutorial, which worked well untill I wanted to start the apache ...
j_kaden's user avatar
  • 35
0 votes
1 answer
149 views

OWIN self hosted web API doesn't receive connections from different network

This is not a duplicated question, I searched all the similar questions and they are similar but not the same issue. I have OWIN self-hosted ASP.NET Web API in a windows service, I can access the API ...
Elamir Ohana's user avatar
-1 votes
3 answers
5k views

how to restart the windows service automatically with 5 seconds, if it is stopped manually? [closed]

I have a windows service that should run on the client's system 24*7 (local server system). If the client tries to stop the service manually, how do I invoke the service within 5-10 seconds? I have ...
Elanchezhiyan's user avatar
2 votes
1 answer
5k views

How to use serilog in a .NET 6 Worker service when using an absolute file path?

In several questions, people already experienced problems with Serilog in .NET 6 when writing logs to log file, such as here and here. I also experience such problems but when using an absolute file ...
Daan's user avatar
  • 2,796
0 votes
0 answers
80 views

Shared Storage Between Browser and Windows Worker Service

I was looking for a way to share data between my browser and a windows worker service. I want to have a shared storage place where a blazor wasm application writes a simple GUID and a c# windows ...
Ali.Rashidi's user avatar
  • 1,344
0 votes
1 answer
532 views

Why does WiX Toolset MSI installer not start a Windows Service via Terminal Services, but does locally?

Use case I was asked to write a WiX Toolset MSI installer for a piece of software (let's call it Z from now on). Z was developed atop of ASP.NET Web API Core 6.0 and it basically exchanges data ...
yellow_submarine's user avatar
0 votes
0 answers
134 views

How to restart another agent in the pipeline which I want to use later

I have two jobs in my pipeline job1 executed with agent A1 and Job2 with with A2. Both A1 and A2 running as service on the same machine. I will be change environment variable in Job1 and it needs to ...
user21317845's user avatar
1 vote
0 answers
280 views

Access denied error for Attaching debugger to process - Intellij

I try to attach Intellij debugger to running windwows service built in golang (running on the same machine). I am able to select the process from the list of available processes (Run -> Attach to ...
JakubSliwinski's user avatar
0 votes
1 answer
610 views

Hosting asp.net core Web API in Windows Service

I completed ASP.NET Core Web API application running as console. Now I need to add ability to run it as Windows Service. I was able to successfully run generic ASP.NET Core application (not Web API) ...
IgorT's user avatar
  • 1
0 votes
0 answers
352 views

Constant RAM memory usage by windows service

I have a windows service developed in c# that runs daily at 10 am (set through a CRON expression). It goes through a list of offices, for each office get a list of appointments, and for each ...
Filip5991's user avatar
  • 423
1 vote
0 answers
484 views

The background service started but did not start the program

I've created a program in Worker Service template which is downloading Temperature from web API with specific temperature sensor parameters. After that im saving these parameters to the SQL database ...
Tommy's user avatar
  • 11
0 votes
2 answers
259 views

integrating PostgreSQL to an application

I'm working on a c++ desktop application involving database management, and i'm facing few issues on how to start/stop the postgres server automatically after the application starts/stops. we could ...
whyn0t's user avatar
  • 301
0 votes
1 answer
21 views

EntityFrameWork in Windows Service

I created a Windows Service (.net core 6) (sample service to learn about windows service) and installed EntityFramework core and EF SQLServer. The installation of the windows service is aborted with ...
Archana Nithyanantham's user avatar
0 votes
1 answer
868 views

Difference between user principle name and logon name in active directory

I am learning active directory and came across UPN , logon name and Sam Account name. So SAM account name is Pre Windows 2000 (ie Windows NT). So it is clear , Logon name is used when user is trying ...
ironmanAJ's user avatar
  • 119
1 vote
1 answer
1k views

ASP NET Core 5 as windows service, service stops but process keeps running

I run an ASP.NET Core 5 API as a Windows service using IHostBuilder.UseWindowsService(). Consider following code block to be my Main() method: try { Log.Information("...
woutervanrobays's user avatar
0 votes
1 answer
1k views

The service failed to start due to the following error: The service did not respond to the start or control request in a timely fashion

I created a worker service on .Net 3.1, after I created a windows service in Services.msc, but I can't start the new service. here are all the related errors I found in eventviewer. The ...
Adomel Arabuli's user avatar
0 votes
2 answers
83 views

How to loop through a row in each column even the data is NULL or empty string?

I have a VB.NET program which runs as a Windows Service. All it does is connect to a table in SQL Server 2016 and reads data (if any exist) and does some transaction posting to an ERP System. Now in ...
Glenn94's user avatar
  • 179
0 votes
1 answer
173 views

Wix - schedule custom action between StopServices and StartServices

I would like to add a custom action in my Wix installer that runs between the StopServices and the StartServices. So that the service is down when the custom action is running. If I do the following ...
woutervanrobays's user avatar
0 votes
1 answer
76 views

error 1503 while installing solr 9 with nssm

Error 1053 - Service do not respond to the start or control request in a timely fashion I am installing solr 9.1.1 version using nssm. The path to executable was repeatedly setting to nssm.exe path. ...
SummiJ's user avatar
  • 1
1 vote
1 answer
428 views

Golang windows service not writting to logfile

I have a simple TCP-server written in Go and running as windows service. It installs/uninstalls just fine, it is working as service and doing it's job but it's not writing a single word in a log file. ...
Alexander Karlov's user avatar
1 vote
0 answers
66 views

How to run ts-node continuously

Previously I ran my app via the "node-windows" module as a windows service. Since adding TypeScript to my project I now run my app via "ts-node index.js" and can't use the node-...
Pascal S's user avatar

1
3 4
5
6 7
181