How would you implement an automated build and deploy system for Windows services. Things to keep in mind:
The service will have to be stopped on the target machine.
The service entry in the Windows registry might need to be created/updated.
Some, but not all, of the services might need to be automatically started.
I am willing to us...
Hello, I have a very quick question about Win32_Service
Is
String sState = service["State"].ToString();
if (! sState.Equals("Running"))
Sufficent to moniter if a service is not running? I want the if statement to return true in all cases where the service isn't running so it can send a warning message.
...
Hi
I want to write windows service in wcf After searching a lot I only found were tutorials of writing webservice in wcf not windows service.
Can any one please provide a link to any tutorial which explains how to write windows service in WCF
...
I have a simple windows service, that might need to be configured on-the-fly (a COM port to listen to). I have done the UI as a console app that connects to the windows service through WCF, it works and fun.
Question: Is it a good idea to develop a MMC Snap-in to control the windows service? Would it be cool?
Note: I haven't done any...
Hi
I've got a few logical printers configured and pointing to the same physical printer. Each logical printer is configured with a specific input and output tray. Opening a document, e.g. a pdf, and printing to any one of these printers results in a correct input/ouput print. However i've developed a windows service (win2003) and when i...
Hi,
I've implemented a WMI provider (Window service, Instance, Methods and Properties provider).
It works fine on Windows Server 2003, but when it run on Windows Server 2008 with non-local administrator user, I cannot query it.
The error I get is 0x8004101d - unexpected error.
When the service user is a local admin everything is OK.
Wh...
I have a problem loading a file, as I'm passing a relative path to the function FileExists(Filename: String) and it's returning false, that is, it does not find the file in the directory that I pass.
I have a file named Template.html in the D:\Programming\Delphi\Projects\SendMail directory, and a service written in Delphi whose .EXE is...
Hi everyone,
Does anyone know of any established best practices for running Windows services (in my case, developed in .NET) such that they will (automatically) fail over correctly to another server, for high availability purposes?
The main ways I can see this being done are either starting up the secondary server when required (in whi...
Hi,
We are currently building an application that needs to communicate to some IBM WebSphere queues. At the other end of the queues there is another world. Due to some unknown circumstances (for me), connecting to the MQQueueManager takes 17 seconds every time, but sending and receiving messages afterwards through the queues is not a ...
Hi,
I have a windows NT service (Maths.exe) created in VC++ 6.0.
I don't have the source code or Visual studio 6.0 installed on my machine.
Can anyone please let me know the command using which I can install the service in Service Control Manager (invoked using service.msc).
I want to control (start, stop) the service manually.
Thanks i...
I configure the recovery for Windows services to restart with a one minute delay after failures. But I have never gotten it to actually restart the service (even with the most blatant errors).
I do get a message in the EventViewer:
The description for Event ID ( 1 ) in Source ( MyApp.exe ) cannot be found. The local computer may no...
I am maintaining some code which looks something like this. It's a Windows service which does some work every 30 minutes. The ActualWorkDoneHere method takes about 30 seconds to run, but if it is stopped while running it can leave things in a bad state. What is the best way to prevent that from happening? Should I replace the While(t...
How to efficiently write code and debug windows service project in visual studio? Visual Studio gives
Cannot start service from the command
line or a debugger. A Windows Service
must first be installed (using
installutil.exe) and then started with
the ServerExplorer, Windows Services
Administrative tool or the NET START
...
I know since Vista, that C# can't hook a UI form directly to the windows service. This was stated on the Microsoft Site.
My question in this regard is: "What is the best mode of communication from a UI to the service?"
I have heard of Remoting, Web services, and direct TCP. Are there other methods? How do they rank against the previ...
I'm looking for a good way to find the process ID of a particular Windows Service.
In particular, I need to find the pid of the default "WebClient" service that ships with Windows. It's hosted as a "local service" within a svchost.exe process. I see that when I use netstat to see what processes are using what ports it lists [WebClient] ...
I need to run a bunch of pluggable processes in a windows service on my server and want to create a user interface that allows me to interact with each of the plugins in use by the service.
What is the most common method (or methods) for communication between a user interface and a long-running windows service? I am thinking of providin...
Hi to all.
Some time ago i Wrote a service with a timer that make an action every n minutes. All was right. But now, I want to write a service that waits for a signal, message or something from a gui application for doing his job.
I want me process to sleep pacefull (not in a infinite loop sniffing something) until my winforms applicat...
I have a version of Visual Studio 2005 that doesn't include a Windows Service project template. Can I just build a (C++) console application and install it as a service without doing anything special within the application code itself.
...
Hello all, hopefully someone here can shed some light on my issue :D
I've been creating a Windows XP service in python that is designed to monitor/repair selected Windows/Application/Service settings, atm I have been focusing on default DCOM settings.
The idea is to backup our default configuration within another registry key for refer...
Update involves updating the binary and quite a few libraries. Please advise if this is possible by tweaking just the server side? Maybe, if I could just send a message with a link for the updates. Currently, There is no provision
It uses a tcp channel configuration to communicate.
...