When you create an installer for your service, set its ServicesDependedOn
property to a string array, which contains the name of the services that
your service depends on.
When your service is then installed, the SCM shall ensure that these
services are running before it starts your service.
--
*************************************************************************
"French is the language of love, C# is for everything else..."
WinToolZone @ http://www.wintoolzone.com/
eXPerience.NET @ http://www.experiencedotnet.com/
"Nitu" <nitu...@fqsltd.com> wrote in message
news:384901c24f4d$ae8e9090$9be62ecf@tkmsftngxa03...
>.
>
Please check That your service is configured to auto start upon system
startup. Also, what string have you used to set the MSMQ service as your
service's dependencies?
--
*************************************************************************
"French is the language of love, C# is for everything else..."
WinToolZone @ http://www.wintoolzone.com/
eXPerience.NET @ http://www.experiencedotnet.com/
"Nitu" <nitu...@fqsltd.com> wrote in message
news:a2a601c24fe7$0f414290$35ef2ecf@TKMSFTNGXA11...
>-----Original Message-----
>Hi!
>
>Please check That your service is configured to auto
start upon system
>startup. Also, what string have you used to set the MSMQ
service as your
>service's dependencies?
>--
>.
>
if i guess correctly your problem is not in the service or code or anything,
but in MSMQ itself.
when u shut down your PC, all messages that were there in private queues,
get DELETED.
i donlt know if this behaviour is by design.
so nitu, its not that the events r not getting fired. u r simply losing all
the messages when u shutdown your PC.
regards,
nauzad kapadia
www.quartzsystems.com
"Nitu" <nitu...@fqsltd.com> wrote in message
news:b04c01c24fed$42f8a4b0$b1e62ecf@tkmsftngxa04...
What mode of message queueing are you using? Are your messages havign their
Delivery proeprty set to EXPRESS or RECOVERABLE? Understand that express
messages are stored in memory and if MSMQ server restarts/crashes, then are
all lost. However, recoverable messages are stored in the memory too, but
also written to the disk. Incase the server crashes/restarts, then MSMQ
reads the messages from the written copies (and hence) recovers.
So, assuming everything else is fine, I suspect that the messages are having
their Delivery property set to EXPRESS, and hence get lost when the server
is restarted.
--
"French is the language of love, C# is for everything else..."
Kumar Gaurav Khanna
Early Achiever MCSE Windows 2000, MCSE NT 4.0, MCP+I
WWW: http://www.wintoolzone.com/
Email: gau...@wintoolzone.com
"Nitu" <nitu...@fqsltd.com> wrote in message
news:b04c01c24fed$42f8a4b0$b1e62ecf@tkmsftngxa04...