Writing and debugging a service

S

Sid Price

I am writing a service using VB.NET 2005 and having some trouble getting
started. I sued the wizard to create the service and I have added some code
to the "OnStart" method. Using the technique described in "How to: Debug the
OnStart Method" I have debugged my startup code and it appears to be working
the way I want. Now I want to install the service and debug the rest of the
service. I have tried to install my service as described in "How to: Install
and Uninstall Services" but my service does not show up in the Server
Explorer and therefore I can not attach to it to continue development. Here
is the log from the installutil utility:

-----

Running a transacted installation.

Beginning the Install phase of the installation.
See the contents of the log file for the C:\Data
Root\Projects\Pacific\Code\VistaMax\Tools 500
Series\VistaScheduler\VMSchedulerService\bin\Debug\VMSchedulerService.exe
assembly's progress.
The file is located at C:\Data Root\Projects\Pacific\Code\VistaMax\Tools 500
Series\VistaScheduler\VMSchedulerService\bin\Debug\VMSchedulerService.InstallLog.

The Install phase completed successfully, and the Commit phase is beginning.
See the contents of the log file for the C:\Data
Root\Projects\Pacific\Code\VistaMax\Tools 500
Series\VistaScheduler\VMSchedulerService\bin\Debug\VMSchedulerService.exe
assembly's progress.
The file is located at C:\Data Root\Projects\Pacific\Code\VistaMax\Tools 500
Series\VistaScheduler\VMSchedulerService\bin\Debug\VMSchedulerService.InstallLog.

The Commit phase completed successfully.

The transacted install has completed.
 
S

Sid Price

I have resolved my issue; I made the assumption that the VS 2005 project
wizard would have supplied a complete framework for a service, this is not
the case and one needs to add an "installer" to the project and configure it
in order to install the service.
Sid.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top