473,472 Members | 2,224 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Windows Service question

vul
I created Windows Service in VB.Net with the name MSFaxListener.
It should listen Windows Fax Service events and update SQL Server database
when fax job changes it's status. In order to do that in OnStart event of
MSFaxListener I'm trying to connect to MS Fax Service.
I set Startup Type of MSFaxListener to Automatic, so it starts and listens.
Sometimes it doesn't connect to MS Fax Service. I think it is because MS Fax
Service did not start before.
I'm new to Windows services. So I do not know what to do to start
MSFaxListener only after MS Fax Service started. I see Dependencies tab in
MSFaxListener properties, but there is nothing.
How do I make MSFaxListener be dependant on MS Fax Service?
Is it a bad idea to try to connect to MS Fax Service in OnStart event of
MSFaxListener? Maybe I need to move it somewhere else? In Timer for
instance?

Thank you
Al
Nov 21 '05 #1
1 1296
You need to implement some retry code inside your service.

Use a timer to recheck the MS Fax Service each 60 seconds, and stops it at
end of 10 minutos, for example. And, for each retry, write it to eventlog.

--
[]s
Cesar


"vul" <aa*@optonline.net> escreveu na mensagem
news:uY*************@TK2MSFTNGP10.phx.gbl...
I created Windows Service in VB.Net with the name MSFaxListener.
It should listen Windows Fax Service events and update SQL Server database
when fax job changes it's status. In order to do that in OnStart event of
MSFaxListener I'm trying to connect to MS Fax Service.
I set Startup Type of MSFaxListener to Automatic, so it starts and listens.
Sometimes it doesn't connect to MS Fax Service. I think it is because MS Fax
Service did not start before.
I'm new to Windows services. So I do not know what to do to start
MSFaxListener only after MS Fax Service started. I see Dependencies tab in
MSFaxListener properties, but there is nothing.
How do I make MSFaxListener be dependant on MS Fax Service?
Is it a bad idea to try to connect to MS Fax Service in OnStart event of
MSFaxListener? Maybe I need to move it somewhere else? In Timer for
instance?

Thank you
Al

Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Eric Chong | last post by:
I created a Windows Service in C# that requires to get passed command arguments like a Console App. I noticed that there is an option "Start parameters" text box in the property of a Windows...
4
by: Bill Sonia | last post by:
I'm written a Windows Service to send e-mails on events like OnStart, OnStop, OnShutDown using System.Web.Mail. It works for everything but OnShutdown. My guess is that once my send mail code is...
5
by: Richard Steele | last post by:
I have created a WinForm application that needs to be run as a windows service (the PC is inaccesible by any user) i have successfully installed the application as a windows service. When i start...
17
by: UJ | last post by:
Is there any way for a windows service to start a windows program ? I have a service that will need to restart a windows app if it needs to. TIA - Jeff.
2
by: deko | last post by:
When to use a privileged user thread rather than a windows service? That's the question raised in a previous post . It was suggested that if the service needs to interact with a WinForms app...
2
by: shyam | last post by:
I have a C++ COM based windows service which have more than 30k lines of code and which is stablized over years. We need to take the advantage of the ..NET framework for this project, especially...
5
by: Tom | last post by:
Using multiple System.Timers.Timer objects in a Windows Service for performing multi-thread activities in a periodic fashion. Timers are AutoReset=false, to only have a single timer execution...
2
by: =?Utf-8?B?Sm9obiBG?= | last post by:
Hello All, I have a question about using an ActiveX control with a Windows Servce in C#. I believe it is not possible to properly setup an ActiveX control in a windows service as the particular...
41
by: pbd22 | last post by:
Hi. I know my windows service works when i run it in debug mode on my dev machine. It also works in release mode on my dev machine. But, when I move the service to a production server, it...
5
by: dm3281 | last post by:
I'm really starting to hate writing services -- or trying to, anyway. Why do I need to rename my project to the service name? Why do I need to set the "ServiceName" property to my service name?...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.