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, also referred to as NT services, are background service processes run by the Service Control Manager based on the service settings and optionally restarted as needed. Windows services are also capable of being launched on demand, based on other service dependencies.

See also Introduction to Windows Service Applications

8974 questions
3
votes
1 answer

Binary was not built with debug information. C# .NET Framework 4.5

I'm using Visual Studio 2019 Community Edition (Version 16.3.7), .NET Framework 4.5 and C#. Trying to attach to process in debugging mode, but having a long "Loading symbols for systemDllName from: Microsoft Symbol Server" process, something like…
Vadym
  • 63
  • 7
3
votes
5 answers

Runtime debugging tips for Windows Service?

I have a Windows Service that monitors a COM port connected to a vendors hardware. This is a very busy piece of hardware that is constantly polling other devices on the wire (this is a twisted-pair RS485 "network"). My software needs to emulate X…
Kelly Beard
  • 684
  • 1
  • 8
  • 20
3
votes
1 answer

Error while starting python windows service executable

I am trying to make a python windows service as instructed from https://www.thepythoncorner.com/2018/08/how-to-create-a-windows-service-in-python/ The service installed directly from python console runs just fine. but when I make the executable…
Chetan
  • 41
  • 5
3
votes
1 answer

How should a message queue consumer impersonate a user in Identity Server 3 in a microservices environment?

We have a microservices environment using Identity Server 3. Identity is provided to http microservices via bearer tokens in the authorisation http header, where the token is a JWT. That JWT usually represents a logged in end user, but it can also…
3
votes
1 answer

Failed to determine the https port for redirect on Windows Server but not on PC?

I created an Asp.Net application and published it a server (Windows Server 2012 R2). It got the following message with the error of Failed to determine the https port for redirect. PS C:\Users\xxx\Website> .\Blazor.exe info:…
ca9163d9
  • 27,283
  • 64
  • 210
  • 413
3
votes
0 answers

How to stop and resume protected triggered Windows service AppIDSvc (AppLocker)

The goal is to control the AppLocker by temporarily stopping the AppIDSvc (Application Identity) Windows service and then resuming its execution. The action is supposed to be performed from within another Windows service with elevated permissions…
Olexander Ivanitskyi
  • 2,202
  • 17
  • 32
3
votes
5 answers

Interacting with running Windows Service?

How do I change settings of Windows Service while it's running? Let's say I process files from one directory to another. I'd like to be able to declare the output and operations for next files (while the service is running). Would be perfect if I…
yosh
  • 3,245
  • 7
  • 55
  • 84
3
votes
1 answer

How to run Apache ActiveMQ Artemis as a Windows Service using a different account

I want to run ActiveMQ Artemis (2.10.1) as a Windows Service as a windows service on a Windows Server 2016. I followed the documentation: On windows you will have the option to run ActiveMQ Artemis as a service. Just use the following command to…
3
votes
1 answer

Always running web service

I've just created a simple asp.NET web service application with a WebMethod that passes the current server time and a Windows form application to run alongside this as a client. As it stands, for the client app to be able to interact with the server…
Paul Alexander
  • 2,686
  • 4
  • 33
  • 69
3
votes
1 answer

how to set two environment variables in nssm with command line

I tried to set two environment variables using nssm set TestService AppEnvironmentExtra SOMEVAR=SOMEVALUE but only the last value is considered, one command overlaps the other i try nssm install TestService TestPath nssm set SystoreApi…
3
votes
2 answers

CoCreateInstance does not start or connect to ATL COM service

I have a ATL COM service exe (MyService.exe), which compiles and runs fine. If I install this service (via MyService.exe /Service), it is successfully installed into the SCM. I can start the service through the SCM and it runs fine, under the…
Jack Smith
  • 713
  • 3
  • 9
  • 19
3
votes
1 answer

How to configure hosted service to begin after .net core 2.2 windows service fully started?

Here is sample of windows service behaviour where hosted service is trying to connect before application started I have a .net core 2.2 console application configured to run as a windows service. I also configured a hosted service that tries to…
3
votes
1 answer

How to create a windows service with winrun4j

I've been reading the documentation but I can't start and stop de service. My .ini file is: main.class=test.TestService service.class=test.TestService service.id=StreamServer service.name=StreamServer service.description=Servidor que proporciona una…
Gabriel Llamas
  • 18,244
  • 26
  • 87
  • 112
3
votes
2 answers

How can I respond to a change in status for a Windows Service?

I wonder if there is any possible way to get or create an event for a status changed of a Windows Service. I know that the ServiceController class does not have the event, but it has the status. Is there any way that I can listen to an event?
guyl
  • 2,158
  • 4
  • 32
  • 58
3
votes
3 answers

C# Windows Service Running On Multiple Machines?

I am trying to create a WCF service which is hosted within a windows service. This windows service will be deployed on multiple machines (a variable number of machines depending on load). There will be a business layer which will be queuing "jobs"…
Jonnster
  • 3,094
  • 5
  • 33
  • 45
1 2 3
99
100