I was wondering why there is such a shortage of books and/or tutorials for implementing Windows Services. How are people learning to create windows services, if there are not many resources out there? Is there some obvious resource that I might have missed?
Thanks.
...
I have a windows service that needs to access a message queue (MSMQ).
The queue itself is created using a MessageQueueInstaller component that automatically generates the install code. I then deploy this using a standard setup project.
The service is installed in the same way, using the same setup project.
When I start the service it...
How can I restart a windows serice programatically in .NET?
Also, I need to do an operation when the service restart is completed.
...
Where can I find good information on common design patterns that might be employed when building a new Windows service?
*Update: I'm asking if there are common designs that are used when constructing a service.
For example: I have seen a single task get executed on a timer (this seems very common when constructing a service). I've...
Hi All,
I found this post,
http://stackoverflow.com/questions/216401/windows-service-startup-timeout
But just wanted to clarify, I have written a windows service in C# .NET that gives timeout errors at times, e.g.
A timeout was reached (30000 milliseconds) .... when starting the service
The reason is it does some WCF stuff in the st...
Hello everyone,
I am using VSTS 2008 + C# + .Net 3.5 to develop a Windows Service application. The code is very simple below, and I find when File.Copy throws exception (e.g. path not valid, no permission, etc.), the service will crash and pop-up a dialog to let me debug. My confusion is, I think unhandled exception of a thread created ...
My team is having a debate which is better: a windows service or scheduled tasks. We have a server dedicated to running jobs and currently they are all scheduled tasks. Some jobs take files, rename them and place them in other directories on the network. Other jobs extract data from SQL, modify it, and ship it elsewhere. Other jobs f...
I'm trying to access a windows service (also created by me) through a WinForms application using ServiceController:
service = new System.ServiceProcess.ServiceController("MyService")
The service returns OK and I can see the status via myservice.Status.
But when i try to start (or stop) it, it returns the error:
Unable to open ser...
I want to redistribute tomcat as part of my application. I'll be distributing a bundled jre as well, and I need to have my app's installer a) install the tomcat service in windows and b) not have it use JAVA_HOME if it's already set on the machine. That is, I need tomcat to point to my bundled jre.
I read here that you can pass a comman...
I'm writing a Windows service which needs to persist some data across reboots/restarts of the service. Currently I'm writing the files in a directory returned by Application.UserAppDataPath, but that doesn't seem to be giving me a consistent answer. How should I determine the right place to write the data?
...
I have a simple app using FileSystemWatcher running as a Windows Service. Files are saved to the directory via an excel VB Macro with
ActiveWorkbook.SaveAs Filename:= "pathToSaveTo"
On creation of a new file, the watcher calls a method to process the file
void watcher_FileCreated(object sender, FileSystemEventArgs e)
{
w...
I have an application that uses MSMQ for asynchronous processing of certain things.
I use WCF to put messages on to the queue and have a WCF MSMQ listener (a windows service) to receive messages and deal with them.
My problem is keeping this stable. What is the correct way to deal with (for example) the queue server (which is a separat...
Hi All,
I have a windows service that exposes a TCP connection (using WCF). This service starts and works fine on my machine (which uses windows firewall).
My colleagues are using mcafee security software (which includes a firewall). When they start the windows service it works some of the time, but the rest of the time the service tim...
Hi All,
I have a windows service that fails to start under some circumstances. When it fails to start the sequence of events suggest that my .NET code in the service has probably run, but no event log messages appear.
Event log messages show up when the service starts properly.
How does the event log work? And how does the windows ser...
This is just an edit to help people from google out a bit later on.
What is the ColdFusion Process Name?
Answer is below.
OLD QUESTION - Found the answer, but renaming for Google purposes:
Hi All,
I am attempting to get the Virtual Memory and Memory Usage from a Windows Service that is not listed in the process list. If it were, i...
Hey folks
I've recently written a Windows service and installed it on the production system. After some applied Windows updates, the server had to be rebooted and my service did not load correctly, although it was set to start automatically. The service started fine manually after we were noticed of the failure by customers. After some ...
I have a program that installs a service, and I'd like to be able to give the user the option later on to change the startup type to "Automatic".
The OS is XP - if it makes any difference (Windows APIs?).
How can I do this in .NET? C# if possible! :)
...
I have a .net windows service that has a crystal report viewer on it. when it polls the db and finds live orders, it will send a report to a printer on the network. this is windows2003 server 64bit. I have installed the msi on the 64bit server found in my visual studio install: C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrappe...
I'm using java code for uploading some files using FTP. When I compile and run the code everything works perfectly, but if I launch it as a windows service using Java Service Launcher, it doesn't connect to the FTP server at all (it just does the rest of the job, that is moving files to archive folder).
Btw, is there any better way for ...
I have developed a Windows service in C#. I have created a installer with Visual Studio 2008, which installs the Windows service. Everything is good so far. I want to make sure that the event source has been created at install time, so that any error/exception conditions at runtime are correctly logged to the Windows event log.
Does the...