469,631 Members | 1,298 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,631 developers. It's quick & easy.

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 1175
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Eric Chong | last post: by
4 posts views Thread by Bill Sonia | last post: by
5 posts views Thread by Richard Steele | last post: by
5 posts views Thread by Tom | last post: by
2 posts views Thread by =?Utf-8?B?Sm9obiBG?= | last post: by
5 posts views Thread by dm3281 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.