Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Windows Service Project Dependencies?
I have written a Windows service in J# and a setup wizard to go with it;
however, I have one problem....

My Windows service creates it's own Event Log and writes events to it.
However, some testing has revealed the service will fail to
automatically start on boot and I have narrowed it down to the situation
wherein the Event Logger isn't started prior to Windows attempting to start
my service. I have worked around the problem by having my service query
whether it is started and starting it itself:

if (eventLogController.get_Status() == ServiceControllerStatus.Stopped)

{

eventLogController.Start();

}

Even though the solution fixes the problem, I don't like it.  I know there's
got to be a way to have the dependency listed.  I found some mention in MSDN
to a control block that would have a list of dependency names, but that
doesn't seem to correlate to anything I can see in the J# project.

I can't find a way in the service or the setup project associated with it to
list Eventlogger as a dependency so that Windows will start it first.  I was
wondering if anyone knew how to build my setup project or alter the service
properties in the VS2005 IDE such that when the service is installed, the
dependency is listed and honored appropriately.

Thanks,

Stephen Cuppett



Report this thread to moderator Post Follow-up to this message
Old Post
Stephen Cuppett
01-29-06 02:57 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Visual Studio archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 04:13 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.