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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
20 views

Windows service is installed and running but not functioning in Python

I had written a windows service in python and able to install and run it properly. But the main functionality (showing icon on windows system's tray) is not working. I tried to debug by writing some ...
Shubham Chaudhary's user avatar
0 votes
0 answers
15 views

Windows Security is missing [closed]

I'm having a trouble with my Windows Security Defender as it is not opening or not working. As I type in search bar "Windows Security", it actually appears, but does not open. I don't have ...
Zeynalli Zeynal's user avatar
1 vote
1 answer
55 views

Windows Service is not starting when I manually stopped and shutdown system and turn on

Currently I'm facing an issue as described below I have bunch of background services which will register to windows services with following configuration. General Tab Info Startup Type: Automatic (...
Gokulkanna Balusamy's user avatar
1 vote
1 answer
18 views

Create a windows service for nginx.exe using install4J

Using install4j I want to create a windows service that runs nginx.exe. I tried to create a service using the option of Other service executable, it manages to install it but when started it throws an ...
George Catalin's user avatar
0 votes
0 answers
12 views

How can I display a system tray icon for Node.js window service.?

I had created a windows service in node.js and now I had a requirement in which I had to create a system tray icon which can show the status of my service. If service is running, I want to show kind ...
Shubham Chaudhary's user avatar
0 votes
1 answer
72 views

Windows Service - .NET Core - not showing designer page

I'm using Windows Forms in .NET Core 6 and I tried to create a Windows service as well. When I created it, I saw that the designer page of Windows service loads more time and I'm not able to add the ...
arun prasadh's user avatar
0 votes
1 answer
40 views

How to let windows to restart a .net service on failure

I am writing a windows service. Unfortunately, I am forced to use a library with a bug. When this bug appears I cannot get rid of it by other means than restarting the process. It is not enough to ...
sefor's user avatar
  • 1
0 votes
0 answers
31 views

How to move my premise windows services into Azure?

I am moving an existing application into Azure and striving for no code changes. I've moved my websites, and they now run as an app service. We have several background workers, currently running as ...
Don Chambers's user avatar
  • 3,910
1 vote
1 answer
34 views

Windows service, writes to OPC takes long time to write to the OPC-object

I have a windows service which has in function call API service and get location data and Timestamp off vehicles write the timestamp and the location name to OPC-objects in the same server using ...
B.j's user avatar
  • 57
0 votes
1 answer
44 views

Windows Service - try running until run successfully

I have an Windows Service, that connects to database. If database is not accesable it throws exception and stops. I want it to try and run this service in loop, until it is started succesfully (maybe ...
garyore's user avatar
0 votes
0 answers
22 views

How to find out system is entering the Modern Standby mode in Windows service using C#

I’m working on a Windows service which is written in C#. I needed to find out if the system is entering the sleep mode and if it is resuming from sleep mode to execute some processes and set some ...
Vahidreza Arabpour's user avatar
0 votes
1 answer
23 views

Winservice C# and Quartz.net v3.7 - Error "ThreadPool type 'Quartz.Simpl.DefaultThreadPool' props could not be configured"

Good morning, I am creating a WinService in C# 4.6.2 and I am using Quartz.Net in version 3.7 to set up batch processing on a server. However, when I start the service I get the following error: ...
NicolasGrif's user avatar
0 votes
1 answer
20 views

Fixing an issue regarding Services.msc or Services with PowerShell

Alongside my problem, I would appreciate some insight on the special windows Services app if possible, in the case I am not correctly understanding how this all works. Thank you. Context: I am ...
ByteSize's user avatar
0 votes
1 answer
39 views

Kestrel self-hosted web API connection timing out

I have a self hosted web API using .Net 6. It is deployed as a window service. I can access locally from browser, using the domain name and port, but can't do that from another machine. I have define ...
Codesmith's user avatar
-1 votes
2 answers
69 views

How to build a Windows Service that connects to 80 SQL Servers every 30 seconds? [closed]

This is a purely theoretical post. I am into SQL Server and PowerBuilder for more than 20 years. Sometimes I mess with C# when things cannot be accomplished otherwise. This time I was asked to ...
PanosPlat's user avatar
  • 948
0 votes
0 answers
18 views

What tools can be used to get an Office Add-in (web app) to get data from the localdb?

I am converting very old VSTO add-ins to the new Office 365 web app. We are making the conversion because most of our code library has been moved to .net 6, which is no longer viable for VSTO. However ...
Pamela Johnson's user avatar
2 votes
1 answer
98 views

How to enable Application Insights for a windows service?

I have a windows service in which the Program.cs is like this - static class Program { static void Main() { var serviceBases = new ServiceBase[] { ...
Cherylaksh's user avatar
0 votes
0 answers
29 views

Running a windows service as domain user when connectivity to Active Directory is not there?

We have a Windows service running in client machines as an agent which downloads the MSI from the server and install it. One of the MSI is responsible of installing an UWP app to a domain user account,...
Demetron's user avatar
0 votes
0 answers
19 views

Having problem with starting a windows services using node-Windows

I'm trying to start a Windows service for fetching a data from an API in the background and update the local SQLite DB whenever there is an internet connection . Just to start with I had created a ...
JEFF BRO's user avatar
1 vote
1 answer
75 views

SMTP Gives error :- Mailbox unavailable. The server response was: Access denied - Invalid HELO name (See RFC2821 4.1.1.1)

I'm running an aspx application on a remote machine which runs a service that is responsible for sending out emails via SMTP. It is unable to send emails and gives me the following error Exception ...
mrrobot's user avatar
  • 11
0 votes
1 answer
36 views

Unable to call microservice using HttpClient

I am using OpenApi (NSwag) to create the client that uses HttpClient to call a micro service. Now when I run my application from Visual Studio, it works fine and I can call my service using HttpClient,...
Ask's user avatar
  • 3,208
0 votes
1 answer
60 views

ASP.NET Core Worker Windows Service - Error 1053: The service did not respond to the start or control request in a timely fashion

I developed ASP.NET Core-6 Worker Windows Service and deployed it. Program.cs: static void Main(string[] args) { IConfiguration configuration = new ConfigurationBuilder() .SetBasePath(...
Ayobamilaye's user avatar
  • 1,147
0 votes
1 answer
33 views

Windows microservice created from .net core using does not write logs to path

Windows microservice created from .net core using does not write logs to path I have created a windows service from c# .net core which uses Serilog.Sinks.Async.File in appsettings.json as below "...
arbck90's user avatar
0 votes
0 answers
51 views

.NET 7 Windows Services : Start with powershell with environment variable

I have a problem with my Windows Services created in .NET 7. When the project is installed on the computer, we need to create 3 windows services : One for Development environment One for Integration ...
Jérémy Janiszewski's user avatar
2 votes
2 answers
47 views

How to combine multiple Windows Service PowerShell commands into a single statement?

I need to stop and then remove a Windows Service and the following PowerShell commands work successfully: Get-Service "$ServiceName" | Stop-Service Get-Service "$ServiceName" | ...
atconway's user avatar
  • 20.8k
0 votes
0 answers
36 views

vb.net run powershell script from a windows service

I made a desktop app that create a ps1 file and then execute it through powershell, and it's working fine. I need to convert it to a windows service, all is working until the creation of the ps1 ...
Gabriele Cozzolino's user avatar
0 votes
0 answers
83 views

Windows Service LockScreen

I have a Windows service look for trigger situations. If one is found, it will lock the screen/log out of the user that is currently active. This is not normally possible as services can not properly ...
Happy  Hobbyist's user avatar
0 votes
0 answers
49 views

Windows Service always looking in Windows\System32

I have a Windows Service that is currently netcore3.1 (I know, I know). When it runs it always looks for the appsettings.config in the C:\Windows\System32 Event Viewer CoreCLR Version: 4.700.19.56402 ....
Thad's user avatar
  • 1,520
0 votes
0 answers
115 views

ServiceBase class in .NET 6 Windows Service Application

In a .NET 6 Windows service application, we have a reference to the class 'System.ServiceProcess.ServiceBase' from 'System.ServiceProcess.ServiceController.dll'. However, when we decompile the code, ...
Jojo Peter's user avatar
0 votes
1 answer
160 views

Setup production certificate for Windows Service hosted ASP.NET Core web application with thumbprint

I have a Windows Service hosted web app created with this tutorial (Web Application as Windows Service section): https://csharp.christiannagel.com/2022/03/22/windowsservice-2/ So far everything works. ...
SZL's user avatar
  • 805
0 votes
0 answers
39 views

Delay Windows Service "Running" State Transition in .NET 6 BackgroundService

I am working on creating a Windows service in .NET 6 using BackgroundService. However, I'm encountering an issue where the Windows service transitions to the "running" state as soon as ...
Jojo Peter's user avatar
0 votes
0 answers
63 views

How to prevent a service executable from being suspended? (C++, win32)

I created a windows service which does not accept PAUSE nor STOP. Thus my service itself does not react on STOP or PAUSE SERVICE CONTROLS. However the service executable can be suspended from ...
anitarazafi's user avatar
0 votes
1 answer
36 views

Windows Service running on a different port

I have created a installer project (.net winforms) which when installed starts running as backend service (Windows service). I have configured the backend service to run on port 1000. The backend ...
GokulCjGrove's user avatar
0 votes
0 answers
35 views

Impersonate User in Windows Service in Windows 10

I am currently working on Windows service. The service need to impersonate the user. I have tried different code but is still cannot impersonate. It always uses NT AUTHORITY\SYSTEM as current user. I ...
Anuj Karki's user avatar
0 votes
0 answers
18 views

Error 1001: While Installing the windows service in a machine

We have developed one windows service using C#.NET. While installing the service in a system we are facing the issue says, Error 1001: No Mapping between Account names and security Ids was done. We ...
Senthilkumar C's user avatar
1 vote
1 answer
66 views

Get PID for running service

Is it possible to get PID of running service by PowerShell? $srv = Get-Service MyTestService $myPid = ... ?
Jacek's user avatar
  • 11.8k
1 vote
1 answer
58 views

Is possible to know if process is Windows Service

I get details about my process, is it possible to get information about if such process in WindowsService or no? $proc = get-process -Id 7120
Jacek's user avatar
  • 11.8k
0 votes
2 answers
17 views

CS0123 No overload for 'method' matches delegate System.Timers.ElapsedEventHandler

I'm converting an older VB windows service to C# .Net4.8. I'm getting a CS0123 (No overload for 'method' matches delegate) error on the line that added a Handler for Timer.Elapsed converted from VB....
Mych's user avatar
  • 2,529
0 votes
0 answers
15 views

ELK Stack: Elk files corrupted- Corruption Issue

my Elk files are corrupted after every time I restart my windows server and some time without restart my files are corrupted. I am running elk as a service in my server. Every time after I restart my ...
rupam saini's user avatar
0 votes
1 answer
73 views

How to read files from Desktop in Windows Service?

I have a web api application. When I run the application, I perform operations by reading the file on the desktop. It works smoothly. I am converting my application to a windows service. However, when ...
Ozgur Saklanmaz's user avatar
0 votes
0 answers
11 views

tomcat server 7 ssl was not enabeling

my application is running in Tomcat server 7 which is running in a Windows server i want to enable an SSL certificate for that application but i tried in many ways but its not worked out, 1. i used ...
Maltesh B K's user avatar
0 votes
0 answers
43 views

service stopping sporadically

I have a service that will occasionally stop without reason. I have the Recovery set to restart the service, but it is not working as expected. What's the best way to determine why the service is ...
theHydra's user avatar
0 votes
0 answers
11 views

OfficeToPDF gets stuck when called from Windows Service

We are using OfficeToPDF to convert MS Office documents to PDF. This basically simply opens the corresponding MS Office app and uses the 'Save as' to convert to PDF. This is used from a Java ...
Spanky's user avatar
  • 111
0 votes
1 answer
40 views

Window Service to listen service bus subscription

I am planning to create a Window service that listen to a service bus subscription. I am not using top shelf. I use the native way to create the window service. My target framework is .Net Framework 4....
ramdev's user avatar
  • 159
0 votes
2 answers
124 views

Windows Service Not starting fails with Error 1053 (The service did not respond to the start or control request in a timely fashion.)

I use windows and Visual studio (2022) coding in c#, to create a windows service using .Net core the code is generated by visual studio and build by it. it does creates two files, one called Program....
user3292410's user avatar
0 votes
0 answers
59 views

Stack Overflow Error when Running ASP.NET Core 6 Backend as .exe Outside IDE

I have encountered a perplexing issue with my ASP.NET Core 6 backend application. When I run it within the Visual Studio IDE, everything works perfectly. However, if I create a build and attempt to ...
Stephan Stieger's user avatar
0 votes
0 answers
19 views

while try to run a service within the container locally getting error?

I'm able to run a windows service in locally by connecting the DB using Azure VPN. but after building the docker image and running the windows container locally, when checking within the container ...
bvp's user avatar
  • 1
1 vote
2 answers
92 views

How do I Enable a Windows Service using the JCL?

In the JCL there is the unit JclSvcCtrl, which has code for starting/stopping services. I want to enable a service before starting it, but I don't see a way of doing it via the JCL. I'm currently ...
Alister's user avatar
  • 6,577
0 votes
1 answer
39 views

c# Set a variable into a referred DLL from caller assembly

I have a DLL shared into 2 projects (into the same solution), this DLL is a library of functions used from the other 2 projects, first one is a Windows Service (exe file) and the second one is a ...
Maurino's user avatar
  • 11
0 votes
1 answer
45 views

C# - Process.GetProcesses() not returning user processes when Executed in a Windows Service

I am trying to create a Service that regularly collects data about the running applications/processes on a computer. The Process.GetProcesses() function works and returns the processes when I am ...
Deepanshu's user avatar

1
2 3 4 5
180