I have a Windows Service that takes the name of a bunch of files and do operations on them (zip/unzip, updating db etc). The operations can take time depending on size and number of files sent to the service.
(1) The module that is sending a request to this service waits until the files are processed. I want to know if there is a way to...
I have a console project that I have been working on. I added log4net to handle all my logging. In some places I have made use of the console appender. When I turn this application into a Windows Service should I just remove the console appender or what happens to that output? Does it just get lost?
I would like to keep it if all possi...
Hi guys,
I am trying to install a windows service using MSBuild and CCNET. I am using MSBuild Extension pack WindowsService
task to install and start the windows service as part of automated build. The script section look like this
<!--install service-->
<MSBuild.ExtensionPack.Computer.WindowsService TaskAction="Install" ServiceName="$...
We are using ELMAH to log the web application exception which works great!. Also we want to know how to customize ELMAH to log the windows service exception.
I am not interested in using another application for logging only windows service exception.
Any help would be appreciated.
...
I'm working on a Windows Service that's having some issues with Thread.Sleep() so I figured I would try to use a timer instead as this question recommends:
http://stackoverflow.com/questions/998142/using-thread-sleep-in-a-windows-service
Thing is it's not entirely clear to me how one might implement this. I believe this is the way but ...
I have created a simple windows service that periodically checks a remote database via web-service and depending upon what it finds updates contents in a local database. Looking at the process in Task Manager it consumes anywhere between 8-MB, which seems a lot compared to what it actually does.
Is there anything that I should be checki...
I built a windows service on my local machine. when I install and run it locally it works perfectly fine. When I try to move it to my production machine I get a null reference exception error.
I've created an installation package that also works perfectly fine on my machine, but when i run it on the production machine the service stil...
I have a Windows Service and I would like to see what it's doing when it starts up. Normally to accomplish something like that, I'd hard-code a Thread.Sleep for like 10 seconds to give me enough time to attach the debugger. This is effective, but annoying, as I need to re-compile once to put the pause in and again when I (hopefully remem...
We have a cluster of window services that acts as a "hub". These services will consume a number of 3rd party web services. Currently we have maxConnection set to 20. However, there are times when the services are handling more then 20 concurrent requests each and any calls to external web services will be dropped.
Is there anything w...
I've created a small executable that can be launched either as a normal application by calling MyApp.exe or as a service by calling MyApp.exe -s. Because I'm trying to keep as simple as possible, I "install" this app by manually running
sc create MyAppService binPath= "C:\MyApp\MyApp.exe -s"
Then I start the service with net start My...
Hi Guys,
We're starting a new custom project right now from a client and one of the requirements is the process cannot be terminated unless the system is shutting down, restarting, or logging-off.
This application monitors the USB interface. We will be using WMI to query the device periodically.
The client want's to run the applicatio...
I tried searching with google, but couldn't get enough resources to learn Windows service. I am eager to learn it, so that I can control my desktop processes. [as like automatically stopping a particular process, when another particular process is started etc] Please guide me some links, which explain with some sample codes, so that I ...
I release several modifications a week for my Windows Services and my users have to update it manually. I was think in rolling my own auto-update component, but I heard of ClickOnce, which seems to suit only Windows Forms and not Windows Services. Is there any similar solution for my case?
And if I should develop this feature myself, sh...
hi.
I'm running JBoss as a windows service, but i can't seem to find where i can configure the JAVA_OPTS to make it work properly.
I need to set the Xms and the Xmx.
I have tried to just run JBoss manually (run.bat) and in the same file i set the JAVA_OPTS= -Xms128m -Xmx512m. And that works.
Here is my install.bat where i install the J...
Hi,
I need to send lots of emails(probably hundreds a day) on schedule base.
The way I'm thinking to do it is as follows but the problem is that my Body field can get very big, and if i add it as string it gets ugly.
SmtpClient client = new SmtpClient(); //host and port picked from web.config
client.EnableSsl = true;
...
Hello.
I have two Windows services written in C#. One service is "Console Application" and second one is "Windows Application" (can't change it).
Both service applications can be executed in few modes (depending on command line arguments and Environment.UserInteractive flag):
when (Environment.UserInteractive == false) and...
when ...
My service is MFC based, set to "Allow service to interact with the desktop", and will only ever run on XP & W2K.
Try as I might I cannot get a simple dialog box to display to the user from a Windows service using a class derived from CDialog. I can however get a message box to appear using MessageBox().
No error is returned and Get...
Is there possibility to compile windows service using only mingw c++ compiler and library?
I assume that it is possible to use compiler with Visual Studio standard library and means, but want to do to this almost fully opensourced.
Any experience?
...
What is the easiest way to ping/notify a .NET Windows Service? Do I have to use WCF for this? Or is there an easier way?
I would like to be able to wake up the service using a Python (or an Iron Python) script from anywhere.
Also is there a way I can be notified (by email) if that the service has stopped?
...
How to setup MongoDB so it can run as windows service?
Thanks
...