windows-services

Pushing a mail include to a java program

Hi, I have a Windows Server that recives mail. These mail contains only 1 single CSV file. I want my server to automatically take the attachment from any incoming mail and send to a java program locally installed. Is there anyone who can give me directions on any programs that fix this or do I need to create some kind of windows service...

How to write to a custom event log?

Hi I'm trying to get my .Net Windows Service to right to a custom event log. I'm using EventLogInstaller to create the event log and source when the application is installed. I read here that it takes a while for Windows to register the source so they reccomend you restart the application before trying to write to the log. As this is ...

Key Event Handling in Windows Services C#

Hi! I want to create a windows service that may log pressed keys into files. For handling global key events I use hooks, hooks works great for desktop apps. But it doesn't work for the services. Is it possible to develop a windows service with key event handling? Developing on C#... Thanks for your time. ...

Use a Datamodule in a Service Application

I wrote my Win32 App to test and debug. I've created a datamodule with all functionality needed to run the TCP sockets and IBDatabase components. After successfully testing the Datamodule in the Win32 application environment I am trying to hook the Datamodule into a Service Application template that I created, I can get nowhere in getti...

How to retain service settings through InstallShield upgrade install

I have an InstallScript project in IS2010. It has a handful of services that get installed. Some are C++ exes and use the "InstallShield Object for NT Services". Others are Java apps installed as services with Java Service Wrapper through LaunchAppAndWait command line calls. Tomcat is also being installed as a service through a call ...

NT AUTHORITY\NetworkService replacement for a Windows 2000 service

I need to develop a Win32 service which accesses network resources This service should work on Windows 2000 too, but NT AUTHORITY\NetworkService is not supported in Windows 2000. Which account can be used for the Windows service, to be able to access network resources in Windows 2000? ...

.net app won't run. When compiling on dest machine (same sources) it does work. Why?

I have a service which needs to be deployed on a clients machine. The destination machine is 64bit. My dev machine is also 64 bit. The app is really simple, listens on a port and does some db things. It targets .net 3.5 When I deploy the Anycpu, the X64 or the X86 version, the thing won't install on the clients machine. I checked depe...

Tools for Window service performance testing

Can you recommend open source and commercial tools for testing Windows services? I want to test for memory usage, leaks, etc. C# 2.0 - Window Services. ...

Can I use VS2010's Intellitrace to gather data for a Windows Service?

I have a Windows service that I'd like to gather some debugging data on using Intellitrace - the problem is that you can't debug a Windows Service by starting it directly from inside VS. I have the service installed, and the very first statement in Service.Start is "Debug.Break", which allows me to attach VS. However, you can't use Intel...

C# modify a config file for a windows service

I have a windows service that reads from a config file. I need to modify this config file prior to the application starting. How can I create a GUI that would handle the changes to the config file. I know that a service does not have a GUI per se, but I really just need something to modify some strings in the config file and then start t...

Out of memory exception - Windows service stop

I have a timer within my Windows service which is built using C# 2.0. We are in the process of designing the Exception handling. Since it is Timer runs on its own thread we would like to handle the out of memory exception. When that occurs we would like to stop the service. How can we gently stop the service when that happens on the diff...

vb.net how to start a folder monitor service at runtime and pass on the folder path to monitor?

hi, I have the following windows service file: Imports System.ServiceProcess Imports System.IO Public Class fswService Dim fsw As FileSystemWatcher Dim lf As StreamWriter Protected Overrides Sub OnStart(ByVal args As String()) ' Add code here to start your service. This method should set things ' in motion so your service ca...

Setup and Deployment project with custom action doesn't install service

I've created a windows service and a setup and deployment project that I want to use to install the service. I have followed the walkthrough on the MSDN as closely as possible. I've created a custom action for install/commit/rollback/uninstall of type "primary output from ProjectName (Release Any CPU)". When I install the app, it runs ...

What's the proper way to write Windows services that update each other?

I have two Windows services, we'll call X and Y. X handles the general functionality for my application, and Y exists to keep X up to date. It does this by checking for updates to X. If they exist, it downloads them, shuts down X, copies in the new files, and restart X. However, I'd like Y to do the same thing for X. My concern, though,...

Service MSFTESQL not found.

While installating MS-CRM:I got sql server errors:- 1>Service MSFTESQL not found. The specified service does not exists as an installed service -----but i can see the service is running automatically and help file says **"verify that you have local administrator permissions for the computer on which sql server is running. And if nece...

Visual Studio has insufficient privileges to debug this process. To debug this process, Visual Studio must be run as an administrator

I have developed a windows service and this is service is running on my local computer under my account. When I try to debug this service by attaching this as a process in visual studio 2008 I get “Unable to attach to the process. Visual Studio has insufficient privileges to debug this process. To debug this process, Visual Studio must b...

Permission differences between windows service and console application

Hello! I'm developing an application with a smart card involved (digital signature). Let's assume that we have the same code in this two contexts: Console application, executed by Administrator user Windows Service, executed by Administrator user I suposed that if this two codes were executed by the same user they would have the sam...

Python retrieving windows service information

Can python retrieve the name of the user that owns a windows service? I've had a fiddle with win32serviceutil but to no avail, nor can I find much documentation on it beyond starting and stopping services. Thanks! ...

Debugging windows service without consuming code from another app

Hi, Is it possible to debug a windows service or class library without consuming the code in a launchable app? There is a thread about doing this, but the techniques don't work and keep saying "Cannot start service..." as I am using a windows service. Thanks ...

COM/DCOM problem when hosting executable is run as a service

I am struggling for days now with the following problem: We have an executable that hosts a COM server, say x.exe. The COM object is instantiated as follows on the calling site: hRes = CoCreateInstance(CLSID_InterceptX, NULL, CLSCTX_SERVER, IID_IInterceptX, (void**)&pInterceptX); It all works fine when x runs as an re...