windows-services

Windows Service Setup Project Problems Converting From VS.NET 2008 to 2010

旧时模样 提交于 2019-12-11 02:42:13
问题 I'm trying to convert a solution from VS.NET 2008 to 2010. The solution includes a Windows Service project and a Setup project that installs the Windows Service. I'm having trouble compiling the Setup project. I've tried starting this over from scratch a few times, following the tutorial here under the section titled To create a setup project for your service . When I simply follow these steps and build the project, I get this error: Unable to build custom action named 'Primary output from

Windows Service Error 1053

雨燕双飞 提交于 2019-12-11 02:38:07
问题 I'm currently writing a windows service which connects to a crm system to pull down a schedule which then runs various datafeeds etc. I've got everything working except when I install everything and try to run start the service I get the following error : "Error 1053: The service did not respond to the start or control request in a timely fashion" Here's the code I'm using in my Service1.cs; namespace FeedManagementService { public partial class Service1 : ServiceBase { private System.Timers

Playing voice over modem from a Windows service

大憨熊 提交于 2019-12-11 02:10:56
问题 I'm developing a VB.NET Windows service which is costantly checking a BMS database for new alarms and making phone calls to warn operators remotely. I'm currently using a .NET TAPI wrapper and the SAPI 5.3 interop assembly, and the steps I'm taking to speak over the phone are: Initialize TAPI interface; Make the call to the operator's number; Take the voice modem waveOut device id Set the voice output to that device id; Let SAPI do the magic. This is all working fine if I compile the code as

Windows service scheduled execution

白昼怎懂夜的黑 提交于 2019-12-11 02:04:18
问题 If I have a Windows Service that needs to execute a task every 30 seconds which is better to use; the Timer() class or a loop that executes the task then sleeps for a number of seconds? class MessageReceiver { public MessageReceiver() { } public void CommencePolling() { while (true) { try { this.ExecuteTask(); System.Threading.Thread.Sleep(30000); } catch (Exception) { // log the exception } } } public void ExecutedTask() { // do stuff } } class MessageReceiver { public MessageReceiver() { }

Why does a windows service, hosting an NserviceBus endpoint in NServiceBus.Host.exe, fail to start when there are NO errors reported for the exe?

人走茶凉 提交于 2019-12-11 01:59:27
问题 To be clear there are no Errors for the hosted service, just a generic Windows service error. The error message says: Error 1053: The service did not respond to the start or control request in a timely fashion. If I run NServiceBus.Host explicitly (where the windows service is installed) I am presented with relevant messages indicating a successful "spinning up" of the end point, and, in fact, I can see subscription message(s) are persisted into a relevant private MSMQ queue and the exe then

Can I use the first OR last 16 characters of a Guid and it still be unique?

坚强是说给别人听的谎言 提交于 2019-12-11 01:38:39
问题 Objective Generate a unique 16-character key, to use as a batch name, that doesn't require any type of storage ( e.g. a unique counter). Background I have a Windows service that runs every 30 seconds . I picks up messages off of an MQ and processes them in a batch. One of the service calls I'm making is requiring a 16-character batch name now. They don't care what the batch name is , it just needs to be unique across all batches. Question If I generate a Guid, can I use the first or last 16

How do you run a DART application as a windows service?

旧街凉风 提交于 2019-12-11 01:30:46
问题 I've been researching the possibility of using the DART language for my next project. The only thing really holding me back at this point is that I'm unable to find a way to run a DART application as a windows service. I have run searches on Google and read through much of the documentation on the DART website. Most of the information I found was related to creating a server in DART but nothing regarding windows services. Can someone either point me at directions or detail the steps necessary

Start WinForms application from Windows Service

萝らか妹 提交于 2019-12-11 01:29:53
问题 I have a (3rd party) WinForms application that I need to keep alive 24/7 on a Windows Server. My first thought was to write a Windows Service that starts the application (using System.Diagnostics.Process ) and restarts it if it should crash or the server is restarted. Is this even possible? I need it to start even if no user is signed in on the server. Can an application with a user interface run when no one is logged in? If no, is there a workaround? N.B. I don't need to interact with the

Configuration System failed to initialize - Windows Service .NET

喜你入骨 提交于 2019-12-11 01:27:20
问题 I created a .NET windows service that installs without any issues on the dev machine. On the server that has only the .NET framework (and no VS installed), since I don't have the VS 2008 prompt, I did the following. I opened the command prompt I did cd C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727 I attempted to install the service using installutil.exe "Path to the service .exe" I get the following exception: Microsoft (R) .NET Framework Installation utility Version 2.0.50727.1433

Cannot access Python server running as Windows service

我的梦境 提交于 2019-12-11 01:15:10
问题 I have written a Python TCP/IP server for internal use, using win32serviceutil/py2exe to create a Windows service. I installed it on a computer running Windows XP Pro SP3. However, I can't connect to it when it's running as a service. I can confirm that it's binding to the address/port, because I get a conflict when I try to bind to that address/port with another application. Further, I have checked the Windows Firewall settings and have added appropriate exceptions. If I run the server as a