I have a windows service that hosts a WCF end-point that is a front-end for a SQL Server CE database.
At the moment I have it at:
Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)
Question: what is most appropriate location for this file (database.sdf)?
...
We are trying to implement a single Windows Services that starts multiple services under the same process. According to code I've seen you do the following:
static void Main()
{
ServiceBase[] ServicesToRun;
ServicesToRun = new ServiceBase[]
{
new Service1(),
new Service2()
};
...
My question is essentially the same as the following one but the answer did not help me.
http://stackoverflow.com/questions/1407217/net-windows-service-multiple-services-in-one-project
Essentially, I have 3 services, lets say "Service1", "Service" and "Service3".
ServiceBase[] ServicesToRun;
ServicesToRun = new ServiceBase[]
...
does anyone knows any good resources and articles that can explain how to create windows services using c#.
thanks
...
Hi,
Can you suggest a good book for learning Windows Services programming using C++?
Thanks,
...
Hi,
I have created a windows service which interacts with SQL Server Express Edition. I want to ship this to my test machine which doesn't have any form of SQL Server installed.
Is there an easy way of shipping SQL Server Express Edition with my service? Is it possible to make this part of a Setup Project?
Thanks.
...
In my production environment I have several Web applications installed in the same machine. These applications access various web services and two SQL Server databases this means that my web.config files are very big and full of details. Besides this I also have windows services that consume the same web services and access different da...
I was wondering if there is any implementation of a windows service that can call custom .net code that can be scheduled to run on specific intervals?
or i should i implement my own (which i am currently doing) but i think its better not to reinvinte the wheel :)
I don’t want to use windows scheduler.
Thanks
...
When running a program, such as notepad, as a service do you not see the program visually?
I see notepad running in the task manager but I can't actually see its instance running. Why is this?
...
I created a simple Windows service in dot net which runs a file. When I run the service locally I see the file running in the task manager just fine. However, when I run the service on the server it won't run the file. I've checked the path to the file which is fine. Below is the code used to launch the process which runs the file. Any i...
I've finished writing a WCF service that uses TCP. It is meant to run on a Windows 2003 Server, which doesn't have WAS available, so I've written a Windows service to host my WCF service. It works great on my development machine.
Now, how do I get these two services onto the Windows 2003 Server? Do I just copy the WCF service there a...
I have a windows service executable that I know is written in .NET which I need to install under a different service name to avoid a conflict. The install doesn't provide anyway to specify a service name. If I only have access to the binary, is there anyway to override the service name when I install it with installutil?
...
I'll write a program for Interactive UNIX (http://en.wikipedia.org/wiki/INTERACTIVE%5FUNIX). But in a year it will be ported to Windows. I'll write it in ANSI C and/or SH-script. When it runs on Windows it will be run as a Windows service. How do I make it as easy as possible for me?
I want to change as little as possible when I port it...
Since a Windows service doesn't run within a user context, what is the "correct" place to put writable data? Is there such a location that is version-independent (I'm thinking Vista vs XP)?
...
I have a windows service written in C# .NET framework 3.5 and would like to know the best way to check if previous shutdown of a service was regular.
Upon starting the service, there should be a check if the last shutdown was regular (via stop service button in services management) or if somebody just killed the process (or it crashed f...
HI Guys,
I have created a windows service which spawns three threads.The first thread wakes up every 15 sec, the second thread wakes up every min. and the third thread once in a day.
My Code looks something like this:
var timer1 = new Timer();
timer1.Elapsed += ProcessTimerEvent1;
timer1.Interval = 60000;
...
I am about to start working on application that runs in the background waiting for a certain user input somewhat like apple's spotlight. Basically the user will give the service a certain key that will bring it up (for example the user might hit control-space or control-p) then the application main GUI will be brought up.
Now my questio...
Hi,
One of my site is on a shared hosting and every few days the site will stop working.
The pages will simply stop loading.
After contacting my host they suggested that I disable/re-enable from their hosting
management tool the windows services for my site every time this happens.
In the list on their website I have: ASP, ASP.net and ...
Hi,
My Windows service is able to launch threads (suing the ThreadStart delegate) in Win XP, but in Win 2003 Server it cant, it is not throwing an exception too ... the thread is simply not starting.
I made a testing Windows Service which have the same code in the (OnStart) event handler and it worked both on Win XP and Win 2003 Server,...
Hello,
I'm currently in the process of creating a Windows service application which will monitor changes to certain keys made in the HKEY_USERS registry. The way I do this is by collecting the SID of the current user. The issue I'm having is that its returning the administrators SID due to the service currently running as local system.
...