windows-services

Creating a user interface for monitoring and interacting with a running windows service

瘦欲@ 提交于 2019-11-28 03:30:16
I need to run a bunch of pluggable processes in a windows service on my server and want to create a user interface that allows me to interact with each of the plugins in use by the service. What is the most common method (or methods) for communication between a user interface and a long-running windows service? I am thinking of providing a go-between location such as a database and using some sort of messaging queue to issue commands to the service. Have any of you implemented such an approach, or some other superior approach? WHat problems have you come across in the process? Matt Davis Do

(SC) DeleteService FAILED 1072

梦想与她 提交于 2019-11-28 03:21:56
Last time I create WAS profile and WASService then I try to config and run many script for learn how to config WAS, Finally it crash so i use wasprofile delete this profile and forgot delete WASService. Now I found IBM Webphere Application Server service display in services.msc list, so I tried to delete it with WASService.exe -remove command and windows SC command but I got message C:\Program Files\IBM\WebSphere\AppServer\bin>sc delete "IBMWAS61Service - DEV" [SC] DeleteService FAILED 1072: The specified service has been marked for deletion. StingyJack make sure the service is stopped, the

Hosting ASP.NET Core as Windows service

邮差的信 提交于 2019-11-28 03:06:44
As I get it in RC2 there's a support for hosting applications within Windows Services. I tried to test it on a simple web api project (using .NET Framework 4.6.1). Here's my Program.cs code: using System; using System.IO; using System.Linq; using System.ServiceProcess; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Hosting.WindowsServices; namespace WebApplication4 { public class Program : ServiceBase { public static void Main(string[] args) { if (args.Contains("--windows-service")) { Run(new Program()); return; } var program = new Program(); program.OnStart(null); Console

Cannot start MongoDB as a service

一笑奈何 提交于 2019-11-28 03:03:39
I have been developing for MongoDB for some months now and would like to install it as a service on my Windows 7 Enterprise machine. The following is the command that I have executed to create the service: "D:\Milvia Systems\Development\MongoDB\mongod.exe" --logpath "D:\Milvia Systems\Development\MongoDB\logs\DBLog.log" --logappend --dbpath "D:\Milvia Systems\Development\MongoDB\db" -vvv --reinstall However, whenever I use net start "MongoDB" or the Service Control Panel I receive the following error: Error 1053: The service did not respond to the start or control request in a timely fashion.

How can I receive OutputDebugString from a service?

巧了我就是萌 提交于 2019-11-28 02:54:40
问题 I'm trying to catch all OutputDebugString messages (including those from services) using the following code. It worked fine until I migrated to Windows 7. The problem is that since Windows Vista services are running in the low level Session #0, some people say that it's impossible to catch them and some that it is. What do you think? Is it possible to modify the following code by increasing some rights to be able to receive OutputDebugString messages from the Session #0? In other words; is it

HTTP 503 Service is unavailable when trying to browse signalr/hubs

折月煮酒 提交于 2019-11-28 02:37:33
问题 I have a windows hosted SignalR hub created in VS2012: public class Startup { public void Configuration(IAppBuilder app) { app.UseCors(CorsOptions.AllowAll); app.MapSignalR(); } } public static class SignalR { public static void Start() { const string url = "http://*:8080"; WebApp.Start<Startup>(url); } } public class Broadcaster : Hub { public void SendDownloadResult(bool result, string device, string description, string connectionId, string task) { var context = GlobalHost.ConnectionManager

Trying to add a service reference results in Bad Request (400) in one project, otherwise runs fine

允我心安 提交于 2019-11-28 02:24:52
I'm in a delicate situation: As the title suggests, I can't seem to connect to a WCF service I wrapped up in a Windows Service. I followed the tutorial http://msdn.microsoft.com/en-us/library/ms733069%28v=vs.110%29.aspx every step and got it to work multiple times in this exact way, just not for one particular project. I really don't know what it is, I have a very simple interface with just one method as contract, my service is installed just fine and also starts just fine. Once I try to add a service reference in another project I get an error 400, Bad Request, and a metadata problem. I even

Is it possible to use Windows 7 Task scheduler in own application

左心房为你撑大大i 提交于 2019-11-28 02:01:10
问题 I'm developing add-on based application. Every add-on use scheduler. Loaded add-on schedule task. My application run only one instance. Sometimes application closed, sometimes running. Therefore i need to use Windows 7 Task scheduler How to use task scheduler on own application? I need create new task from application I need that when task finish, Send message to my application or invoke any function of my application Is it possible? How to do it? 回答1: Check out this project at CodeProject. A

HttpContext.Current.Server null

喜夏-厌秋 提交于 2019-11-28 01:59:51
I have a windows service which is using a method from a class library with same asp.net solution. in class library, I have a method with following line: reader = XmlReader.Create(HttpContext.Current.Server .MapPath("~/TestDevice/Data.xml"), settings); When control comes to this line. I get exception. I tried to debug the code and found that when service tries to access this method then HttpContext.Current.Server is null . What is alternative syntax. I tried to access this class library method from web application and it works fine. Please suggest solution. HttpContext.Current is returning null

How to create multiple instance of Windows Service?

醉酒当歌 提交于 2019-11-28 01:48:39
问题 I want to run multiple instances of a Windows Service installed on a server without installing it again. How is this possible? 回答1: A service "installation" is really just adding a mapping between a name, an executable, and a few other bits of metadata. A service, once installed, is either running (once), or it isn't. To have multiple instances running as services , they would have to be registered with different names, which basically means installing it multiple times. That does not ,