Quick summary with what I now know
I've got an EventWaitHandle that I created and then closed. When I try to re-create it with this ctor, an "Access to the path ... is denied" exception is thrown. This exception is rare, most of the times it just re-creates the EventWaitHandle just fine. With the answer posted below (by me), I'm able ...
I have solution which contain so many projects and windowservices. I modified coding on the application side of windowservice,after that i copied the exe
regarding that service(F:\Components\Console\Bin\service.exe)
in to the installation path(C:\Program Files\syscon\ Monitor\service.exe) after
stopping windowservice from the 'service...
I searched a lot, but all are guessed answers. Help me to find the exact answer.
...
Hi,
My windows service is using a Thread (not a timer) which is always looping and sleeps for 1 second every loop using : evet.WaitOne(interval);
When I start the service it works fine and I can see in the task manager that it is running, consuming and releasing memory, consuming processor ... etc
that is all normal, but after a while (...
I have a "Cron Service" that i've had running on our production server for over a year and a half.
It's a regular windows service which every minute connects to the DB, checks on one table whether there's something to do, and if so, does it. This is a server for a website that's not used a lot, so most of the time the service is complet...
Hi, I have written a windows service in c# that essentially listens for commands on a specific port and in most cases will create a new Process class and shell execute said task.
I primarily want to use it to launch media. Eg, i have a media file called c:\media.avi -> from a remote client i send "-launch c:\media.avi" and the server la...
Hi guys,
I wrote my first windows service.
Create WS project
Rename Service
Drag a timer into the middle
Enable it, tick to 1s
Create a logfie in tick when not exists
Install the service
Run the Service
Nothing happens...
I try to attach to the service, it's loaded correctly, but with a breakpoint in it, it never hits.
Any ideas?
...
Hi guys,
I want to install and start (2. Button Stop and Deinstall) a service from code in C#.Net Windows Forms.
Can someone help me?
...
Hello,
I'm attempting to install a service via C# from an installer's custom action.
I've tracked most of the topics related to my problem on Stack-Overflow however I've failed to find a solution to my problem.
The problem is : I need to pass additional arguments to my service, here's how it looks like in cmd.exe :
my_service -instal...
I had written a Web Service to return a DataSet back to my ASP.Net site and this was working fine. However due to security issues and also the ability to get certain references installed, I have to move this to an App Server and so doing it as a Windows Service and communicating with the ASP.Net site now via sockets.
Is there a way I c...
What I need to achieve is to sync the client laptop time with a specific NTP server and display a standard time (without DST).
I did try NTP Client, but if the auto-sync is enabled on system, then it will be pointless.
Now I am using w32tm and manually set my NTP server as default NTP server in registry.
All worked but DST, I changed v...
I have a solution with many Windows services and their ProjectInstallers are very similar. How to make a single Installer class in a library that is used by every WindowsService?
I tried to do it, but it didn't work yet.
The code below contains only part of a Installer
[RunInstaller(true)]
public partial class ProjectInstaller : Insta...
i have a web page written in vb, i need to start a windows service that will be installed in the server.
...
Hi,
I have 2 components as below
1) a windows service that reads DLL path, properties and functions from a config file and executes the function of the DLL using reflections.Assemply --- It works perfectly fine with any DLL (without DB connection). Idea is to create a windows service which will perform any task specified in the config ...
We have some codebar scanners based on Windows CE that run remote applications located on some servers via Windows Terminal Service.
Given that we are migrating our server applications to UNIX based operating systems, I was wondering is there any reliable RDP based solution that can be considered ?
Thanks,
...
I have a windows service (.exe) file. How to install it as a service from the windows command prompt in a deployment system?
...
I developed a simple windows service in C# as per this article.
http://www.codeproject.com/KB/dotnet/simplewindowsservice.aspx
I was successfully able to start the service for the first time and stop it. During the following attempts, I was not able to start the service. I got the following information.
The MyNewService service on ...
The memory leak is not happening on every machine, but reliably on a couple at my work, and it's looking like close to 10% in the field.
I have a product that uses a Windows service to monitor user input to launch alerts, paired with a visual application that serves only to sit in the system tray, and allow the user to make configuratio...
I hate asking questions like this - they're so undefined... and undefinable, but here goes.
Background:
I've got a DLL that is the guts of an application that is a timed process. My timer receives a configuration for the interval at which it runs and a delegate that should be run when the interval elapses. I've got another DLL that co...
I've looked and couldn't find what should be a simple question:
How can a Windows Service determine the ServiceName for which it was started?
I know the installation can hack at the registry and add a command line argument, but logically that seems like it should be unnecessary, hence this question.
I'm hoping to run multiple copies o...