windows-services

My C# program running as Windows Service is blocking Windows XP from hibernation

I have Windows Service written in C#. It starts two threads, one is pooling a Web Service, second is waiting on a Monitor object for a new job to arrive. Besides that, the main thread acts as a WCF service host using NetNamedPipeBinding. It lets the client application to register a callback and then sends notifications back. The proble...

Outlook Macro not executing

Hello all, we are using an an outlook macro for incoming emails to unzip the attachments, log them in sql server and copy them to a special working folder where a windows service processes them. The problems are: the user must be logged in at the server otherwise the macro wont run. I think there is no workaround for ...

Printing from a Windows Service

Ok, I am trying to print a page from a windows service that I installed using a Visual Studio setup project. At first I set the Account property yo Local System, but it will tell me that there are no printers installed (and there are). So I changed it to user and now it just doesn't print (no error or anything). I did some Googleing an...

Set service dependencies after install

I have an application that runs as a Windows service. It stores various things settings in a database that are looked up when the service starts. I built the service to support various types of databases (SQL Server, Oracle, MySQL, etc). Often times end users choose to configure the software to use SQL Server (they can simply modify a...

.NET - What is the best library for inspecting and controling Windows Services?

Hi, I need to monitor and control a set of Windows Services that are running either on a local machine or remotely. I've heard of WMI and ADSI and the first one seems to do what I want. Before going deep into it, I just want to check if I'm going in the right direction? Thank you EDIT Additional information: I also need to inspect SQ...

Install windows service without InstallUtil.exe

Hi, I'm trying to deploy a windows service but not quite sure how to do it right. I built it as a console app to start with, I've now turned it into a windows service project and just call my class from the OnStart method in the service. I now need to install this on a server which doesn't have Visual Studio on it, which if I've unders...

how to implement login and service features as in skype or msn chat in a wpf application

Hello Good people! I'm building an WPF application that connect to web services for its operations.Things that i needed to be working are so far fine.Now i'll like to improve use experience by adding features like username editable combobox, sign me in when skype start and start when computer start. I have a fair idea about each feat...

Host a windows program as windows service

Hi, is there any free solution to run a third party windows program as windows service in windows server? it would be better that the solution can allow one of multiple RDP users to take control of the program to perform administrative work by accessing the UI of the program. Thanks in advance! ...

how to create setup for window service

I have created setup for window application but not for window service. Could you please help me? ...

.NET Service when finished or just before finishing start another .NET service?

I've been given 2 .net services. 1 needs to run right after the other. Ideally I'd merge the two services into 1, but given that this is a stopgap measure for only another month or two before its not needed any more I'd prefer not to have to do that much modification and testing on a large change. I was wondering how I could tell service...

WinService hosted WCF + PHP client, and disabled service

Hi, I have implemented a WCF service hosted on Windows Service. I want to consume it with PHP. Everything works OK for now, but problem is when I stop my win. service. Consuming it with .NET application I get EndpointNotFoundException. But using PHP I get HTTP Error 500.0 - Internal Server Error This is my PHP code: <?php header('Con...

Run Windows application as a service?

What is the cleanest, most reliable way to run a Windows application as a service without touching its code? Use case: NorthScale's 64-bit Windows version of memcached runs as a generic application. I'd like to stick it into a Windows 2003 or 2008 Service so I can start/stop/restart/etc it through the standard interface. ...

Pros and Cons of running Quartz.NET embedded or as a windows service.

I want to add quartz scheduling to an ASP.NET application. It will be used to send queued up emails. What are the pros and cons of running quartz.net as windows service vs embedded. My main concern is how Quartz.NET in embedded mode handles variable number of worker processes in IIS. ...

How can I install a service under a different account than the LocalSystem account using Win32 API?

How can I install a service under a different account than the LocalSystem account using Win32 API? I am using the following code to install the service. I want to install this service under a different account. The last two parameters take username and password but when I give so it throws an error. Is there any specific way of giving ...

Windows Service Printing Behaviour

Alright, I was tasked to develop a Windows Service that listens to a directory for files that are dropped in it, read them, delete them and print out a report. I installed the service on my work laptop (Win 7 x86) and a test machine (XP x86) under a User account at first. It would do everything as it should except the print the report. ...

Windows Server 2003 call to secedit within a batch script generates "C:\Program" on system reboot

In executing secedit /configure /db %~1\tomcat.sdb" /cfg %~1\2003.inf" /log %~1\dtomcat.log" /quiet where %~1 == C:\Program Files\myDirectory\mySubDirectory\mySuperSubDirectory a file titled "C:\Program" is generated and within the file is the output for calling secedit /? I am curious as to why this is occuring because it mak...

Is it possible to Kick off a java process under Windows Service with C#?

I would like to wrap a java program into a windows service with C# using System.ServiceProcess.ServiceBase. So I came up with the following code: /// <summary> /// The main entry point for the application. /// </summary> static void Main() { System.ServiceProcess.ServiceBase.Run(new JavaLauncher()); } protected override void OnStart...

When do we use windows service ?

Are there situations that we should use a windows service ? I am building a client-server project (c#) and the server supposed to work alone without any user so someone advised me to use a windows service to run the server, is this right ? or there are a better solutions ? ...

What to check to see if server has enough free resources?

The windows service I am writing will need to run some processor intensive operations once in a while (sound encoding wav -> mp3) on a machine that takes part in real time voice communication (so I cannot just run them any-time). What would you check (what counters maybe) before running such operation? Can you point me to any good arti...

How to debug a windows service with Delphi?

Is there a way to debug completely a windows service with Delphi? ...