2
голосов
5ответов
9277 просмотров

How to hide windows service from task manager in windows desktop

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 .

9
голосов
4ответов
21143 просмотров

How to install a Windows service developed in .NET 3.5?

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 ...

2
голосов
2ответов
359 просмотров

What is the easiest way to implement a self restarting service

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...

1
голосов
5ответов
1987 просмотров

SSIS Package won't execute when called

I have an 2005 SSIS package that I'm calling in a service created in VS 2005. The package will not run. The purpose of the package is to parse a file and put data into a "Load Table". The package runs perfectly on its own, but will not run at all when executed programatically - when I'm steppin...

0
голосов
1ответов
183 просмотров

msi installer - service isn't starting

I've created an msi for a .net service (AqPlugins). It builds without issue. I've done an install using the msi on a server. In the application log I see: Windows Installer reconfigured the product. Product Name: AqPlugins. Product Version: 1.0.0. Product Language: 1033. Reconfigurat...

3
голосов
2ответов
427 просмотров

How to use SPWindowsService

From what I understand from the sparse documentation on MSDN, the way to do long running jobs in SharePoint is to use a SPWindowsService. I would like an example on how to create a custom windows service to run in the context of a SharePoint farm.

2
голосов
1ответов
447 просмотров

Microsoft Setup Projects for services and automated removal previous versions

I have an application that runs as a service. I have altered the services installer object so that I can pass setup data to it from a user input screen on the installation/setup project. This all appears to work well apart from the following points: Installation is error free UNLESS there is ...

0
голосов
2ответов
133 просмотров

Retrieving information why .NET service was stopped in OnStop

I have a .NET service, based on ServiceBase: public partial class Service : ServiceBase Something initiates stop on this service. The stuff logged during service stop is consistent with a regular stop using SCM, but user states he didn't initiate it. I am not sure if that is some sort of crash...

25
голосов
7ответов
34317 просмотров

How to properly stop a multi-threaded .NET windows service?

I have a windows service written in C# that creates a truck load of threads and makes many network connections (WMI, SNMP, simple TCP, http). When attempting to stop the windows service using the Services MSC snap-in, the call to stop the service returns relatively quickly but the process continu...

5
голосов
2ответов
12597 просмотров

How to reliably capture Windows logon, logoff, lock and unlock events from a service?

using Microsoft.Win32; public class App { static void Main() { SystemEvents.SessionSwitch += SystemEvents_SessionSwitch; Console.ReadLine(); SystemEvents.SessionSwitch -= SystemEvents_SessionSwitch; } static void SystemEvents_SessionSwitch(object sender, SessionSwi...

3
голосов
2ответов
9440 просмотров

Receiving MSMQ messages with Windows Service

I'm creating a Windows Service in C#. What is the best way to listen for messages?? How do I code this properly??

9
голосов
7ответов
7995 просмотров

How to create a web interface for a windows service in .Net?

I'm looking for a way to host a web UI in a windows service so that I can configure and control it within a browser. I'd like a simple and lightweight solution, and I don't want to use IIS. I could probably hand-roll most of it but I was wondering if there was something already made to ease the...

0
голосов
1ответов
1644 просмотров

programmatically stop a windows service using ruby

Is there a way to stop a windows service (possibly on a remote machine) using ruby?

0
голосов
2ответов
1506 просмотров

WCF Service Self Hosting Trouble

I'm trying to host a WCF Service inside a Windows Service which I am starting through a console app. Each service is its own project as is the console app. I've copied the app.config from the WCF Service library into the app.config of the console app, but I keep getting "Service has zero applic...

1
голосов
1ответов
563 просмотров

Gracefuly stop .net initiated Java Process

Having the next .net code, I want to stop it correctly so that the jvm executes it's ShutdownHooks. System.Diagnostics.Process p = new Process(); p.StartInfo.UseShellExecute = false; p.StartInfo.RedirectStandardError = true; p.StartInfo.RedirectStandardOutput = true; p.StartInfo.WindowStyle = Pr...

0
голосов
2ответов
4693 просмотров

Windows service install problem

I have a .NET Windows serivce protected with {smartassembly} which works fine, except that I can't get the protected version to install. When I did the testing the service was already installed, then I copied the protected version over the original. There are some instructions on the {smartassem...

0
голосов
2ответов
57 просмотров

Looking for program execution file location!

I have a program running only by using right clicking. How can we find the location of the that source file? I believe im looking for .exe extension. The folder where i installed it don't have the .exe file on that program and many .dll files. is there a possibility that it was running by those...

2
голосов
3ответов
2056 просмотров

Debugging Topshelf service that won't run under restrictive account

I have a Windows service written using Topshelf. I'm trying to configure it to run using a Windows account with restricted privileges rather than using LocalSystem. That's also necessary as I'd like to connect to a database using integrated authentication. The service works when run as LocalSyst...

5
голосов
1ответов
1868 просмотров

Make Executable run at a lower priority

Possible Duplicate: Setting a thread priority in a service I've created a Windows Service and I want it to always run at LOW priority. Is there any way to achieve this via code or how I package up the install?

22
голосов
13ответов
47509 просмотров

Windows Service that runs Periodically

I'm writing a windows service that once started will run every X hours. The process it completes is fairly intensive, so I want to use a background worker. I'm using a Settings file to store both the hours between runs and the last time the service ran. I'm not exactly sure the best way to do ...

1
голосов
2ответов
2841 просмотров

How do I make a windows service installer from visual studio 2008?

How do I make a windows service installer from visual studio 2008?

4
голосов
4ответов
7736 просмотров

How does one stop a Windows service to do an upgrade install?

I have developed a Windows service along with a setup project using Visual Studio 2008. When I do an upgrade install I get the following warning: The following applications are using files which the installer must update. You can either close the applications and click "Try Again", or click "Con...

14
голосов
2ответов
13849 просмотров

Does one need to manually create a Windows event log source when installing a Windows service

I have developed a Windows service in C#. I have created a installer with Visual Studio 2008, which installs the Windows service. Everything is good so far. I want to make sure that the event source has been created at install time, so that any error/exception conditions at runtime are correctly ...

0
голосов
2ответов
1351 просмотров

Java code for FTP upload doesn't work properly if launched as windows service

I'm using java code for uploading some files using FTP. When I compile and run the code everything works perfectly, but if I launch it as a windows service using Java Service Launcher, it doesn't connect to the FTP server at all (it just does the rest of the job, that is moving files to archive f...

1
голосов
2ответов
2453 просмотров

Why does Crystal Reports for VS 2008 throw "Load report Failed. COMException: The Report Application Server failed" when sending report to printer?

I have a .NET Windows service that has a crystal report viewer on it. when it polls the db and finds live orders, it will send a report to a printer on the network. this is Windows2003 server 64bit. I have installed the msi on the 64bit server found in my Visual Studio install: C:\Program Fi...

33
голосов
9ответов
50863 просмотров

How do I change a Windows Service's startup type in .NET (post-install)?

I have a program that installs a service, and I'd like to be able to give the user the option later on to change the startup type to "Automatic". The OS is XP - if it makes any difference (Windows APIs?). How can I do this in .NET? C# if possible! :)

4
голосов
2ответов
2070 просмотров

Collect Windows service dependencies

I've recently written a Windows service and installed it on the production system. After some applied Windows updates, the server had to be rebooted and my service did not load correctly, although it was set to start automatically. The service started fine manually after we were noticed of the fa...

1
голосов
6ответов
1195 просмотров

Coldfusion Process Name

What is the ColdFusion Process Name?

2
голосов
2ответов
3479 просмотров

Windows Services Not Logging To Event Log

I have a windows service that fails to start under some circumstances. When it fails to start the sequence of events suggest that my .NET code in the service has probably run, but no event log messages appear. Event log messages show up when the service starts properly. How does the event log w...

1
голосов
1ответов
397 просмотров

WCF in a windows service

I have a windows service that exposes a TCP connection (using WCF). This service starts and works fine on my machine (which uses windows firewall). My colleagues are using mcafee security software (which includes a firewall). When they start the windows service it works some of the time, but the...