I have got a windows service written in .NET and I need to be able to implement a self-restarting feature for it.
E.g. service constantly monitors the environment in runs in and once a value of the environmental variable reaches its threashold value the service must restart itself.
What would be the easiest way to do it?
...
I have developed a Windows service using Visual Studio 2008. I want to install that service in a machine where Visual Studio is not installed, but .NET 3.5 is installed.
Generally InstallUtil.exe shall be used for installing a Windows Service, but the InstallUtil.exe utility is not available in .NET 3.5. When I tried installing that ser...
Windows server 2008 does not allow interactive services. In fact it gives you a nice message if your service is set to allow interactive services.
The ProcessName Process service is marked
as an interactive service. However,
the system is configured to not allow
interactive services. This service
may not function properly....
I am creating windows service in desktop while running its showing on task manager . So is there any api or any procedure for hide service diagrammatically.can you pls send some sample code for service which can hide from task manager .
...
Hello,
I'm trying to use c#'s performance counters to track the throughput of an application (a windows service actually). But I have a question on how to tackle this... My application parses XML documents and I want to monitor how many documents are parsed per unit of time.
I'm using _counter.Increment() every time I parse a document, b...
I've created a windows service in c#, using Visual Studio 2008
I pretty much followed this:
http://www.codeproject.com/KB/dotnet/simplewindowsservice.aspx
I created a setup project, as instructed to in the article, and ran it...
it installs my service to c:\program files\product etc.... however, it does not then appear in the services l...
How can I use ServiceController to tell me if a service has been registered or not? In the code fragment below, the check for a null DisplayName results in a System.InvalidOperationException.
Is there a straightforward way of doing this that I'm completely missing?
ServiceController sc = new ServiceController("TestService");
if (sc.D...
I have a WCF service which can run as Console App and a Windows Service. I have recently copied the console app up to a W2K3 server with the following security settings:
<wsHttpBinding>
<binding name="ServiceBinding_Security" transactionFlow="true" >
<security mode="TransportWithMessageCredential" >
<message clientCredentialType=...
Hi I have a problem with following scenario:
There is a windows service running which spawns several processes. These processes open a WCF service host over a named pipe binding. Now the parent windows service tries to ping (connect) to the child processes using the wcf proxy over the well known named pipe. This, however fails saying: "...
I have a windows service and I'd like my application to be able to call some methods on that service.
I've read that this is possible via exposing the required methods with WCF.
Can someone give me a pointer on how to achieve this? I understand web services and calling them, but WCF and windows services are less my forte.
...
I would like to create a windows service in .NET that runs on WinMo 6.x....
There r a lot of documentation for how to do that in MFC (and non-MFC)
http://msdn.microsoft.com/en-us/library/ms838599.aspx
but I can't find any pointers for .NET stuff, is it even doable?
Thanks,
...
Hello,
I have created a windows service and I would like it to access a web cache. I have stored a datatable in web cache and I would like for my windows service to access and process it. Is this possible?
...
For my projects I need quite often to create windows services.
I need them for scheduling operations, file system watching, asynchronous or long running side tasks (backup files, sending messages, check incoming mail to process, notifications etc).
I also use them to expose WCF services that are cross applications in the enterprise....
Hi,
I am creating a Windows Service which I want to use NLog with. I want the logs to be written to the install location of the service say something like:
PathToInstalledService\Logs\MyLog.txt
This is of course going to require administrator priveledges. So my question is, when creating the install for the Service, what account shou...
Hi,
I have a Windows Service that must connect, via VPN, to the network in order to send emails. What I need to do (when I start the service) is check whether the VPN connection exists, if not create it, and then connect to the network.
I was looking at DotRAS which looks ideal for doing all the work, however, it doesn't seem to provid...
I'm using WiX to write a MSI installer to start a service that depends on DLLs installed by the MSI. On Vista, the DLLs become added to the global assembly cache in the MSI's InstallFinalize phase, so I can't use the built-in service starting command in WiX. That one tries to start the service before the DLLs are in the GAC, and fails. T...
This is my first post, so let me start by saying HELLO!
I am writing a windows service to monitor the running state of a number of other windows services on the same server. I'd like to extend the application to also print some of the memory statistics of the services, but I'm having trouble working out how to map from a particular Ser...
Hello,
I'm creating services on Windows XP.
I have to use a utility that we are using . The utility is making registration in the registry.
My question is that when I'm creating the service a folder name Enum is not created, which I saw was created for all other services.
Is it important ? For what I need it ?
Thanks
...
I have developed a Win32 C/C++ application that creates dynamic WFP IP filters, however it must be run as admin to do so (due to the Windows security policy). I want to place the code that requires admin privileges in a service running with admin privileges and then call it from the application running as a normal user.
First is this th...
I've wrote a windows service in C# using ServiceBase helper. During its execution some procedures on an external native DLL are called. Annoyingly, those procedures write to stdout and/or stderr in a uncontrolled manner as no sources are given for this DLL.
Is it possible to redirect those outputs from the C# service to a log file?
Reg...