Top "Windows-services" questions

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

Error "Settings to access printer 'printername' are not valid" when printing from Windows service

I get the error mentioned when printing to a network printer. The error does not occur when run under XP/…

.net printing windows-services network-printers
Check if a service exists on a particular machine without using exception handling

Don't know if there is a better way to do this, so that is the reason for the question. I …

c# windows-services
Install Windows Service with Recovery action to Restart

I'm installing a Windows Service using the ServiceProcessInstaller and ServiceInstaller classes. I've used the ServiceProcessInstaller to set the start type, …

.net windows-services service
Cannot Start Windows Service in NetworkService account

I have a windows service project implementation that I am trying to install as network service. process = new ServiceProcessInstaller(); process.…

c# .net windows-services network-service
How can I unit test a Windows Service?

.NET Framework: 2.0 Preferred Language: C# I am new to TDD (Test Driven Development). First of all, is it even possible …

c# .net unit-testing windows-services
How to configure IE proxying for the local system account?

See Server Fault: How do I configure proxy settings for LOCAL SYSTEM? I have a Windows service that needs to …

windows internet-explorer windows-services registry localsystem
Check status of services that run in a remote computer using C#

I'm using the following code. ServiceController MyController = new ServiceController(); MyController.MachineName = server_txt.Text.Trim(); MyController.ServiceName = "Service1"; string msg = …

c# windows windows-services remote-access
The server has rejected the client credentials, WCF as Windows Service

I am able to connect to my WCF service with the Win-form application, however i am not able to do …

c# winforms wcf windows-services net.tcp
How to properly stop a multi-threaded .NET windows service?

I have a windows service written in C# that creates a truck load of threads and makes many network connections (…

.net windows-services process terminate
Am I Running as a Service

I am currently writing a little bootstrap code for a service that can be run in the console. It essentially …

c# .net windows-services