windows-services

Windows Service Security

Hi, I have a Windows Service (not a webservice) and I need to provide some security. ie. Only authorise users run methods of the service. Is it possible to use certificates like you can do for webservices? Can anyone describe the process of how one would go about doing this? Thanks! ...

NamedPipes throwing an exception in windows service

I have created a windows service which allows communications via namedpipes. This code worked fine when I wrote some unit tests to spin up the pipes and test the communication, but now I have installed the same code in my windows service I get the following error: Exception Info: System.IO.IOException Stack: at System.IO.__Erro...

Setting a window service to run as the current user when it is installed using InstallUtil.exe

Is there a way to install a windows service and automatically set it up to run as the current user without having to manually fill in details each time it installs? We're developing a windows service and want to automate the installation of the service on developer machines so everyone can get up and running on the project very quickly...

Regular DateTime question

Hi, I'm writing a service but I want to have config settings to make sure that the service does not run within a certain time window on one day of the week. eg Mondays between 17:00 and 19:00. Is it possible to create a datetime that represents any monday so I can have one App config key for DontProcessStartTime and one for DontProcess...

MSDeploy to install windows service?

Hi, We have a website which publishes events using NServiceBus. The site is deployed using msdeploy. We also have the NServiceBus.exe which should run as a windows service to subscribe to these events, and we'd like to deploy that as well. Is there any way to package the service as well as the website, so that it can be installed as ...

How to host a WCF service in a Windows Service and get it to respond to WEBGET requests?

Hi, I've been asked to write a windows service which will respond to WEBGET. I'm new to this. Can someone tell me if this is even possible. I originally wrote the service as a webservice and it worked fine. The contract I have is: [ServiceContract(Namespace="http://Microsoft.Samples.WindowsService")] public interface IService { [Ope...

.NET Windows Service: Implementation of tasks - design flaw?

Hi, I am having one of those moments where I am struggling to do something neatly which automatically makes me think maybe I have got this wrong. I have a ServiceTaskManager (yes, I know people will not like the name) class: Public Class ServiceTaskManager Inherits MyAbstractClass Implements IWork, IServiceWork Public Sub...

Schedule Windows Service with Quartz.NET

Hi, I want to schedule my windows service with Quartz.NET.I tried some examples but,i can't schedule my windows service.How can i do it? Thanks. ...