creating a service

sirbounty
sirbounty used Ask the Experts™
on
No real problem here - I just want to create my first 'service' using .net 2005
Looking for pointers/guides etc.  I don't know where to begin (other than google... :|)

I'll probably ask a few followups later though...

I have a monitoring app, if you will, that determines when my VPN connection drops.
I'd rather create this as a service (can I simply 'redo' what I have?)
Thanx
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
http://www.developerfusion.co.uk/show/3441/2/

this applies to vb 2005 as well. If you go to google and do a search u will find a lot of hits.
http://www.devarticles.com/c/a/VB.Net/Creating-A-Windows-Service-in-VB.NET/
http://www.codeguru.com/vb/gen/vb_system/services/article.php/c4825/
http://www.codeproject.com/dotnet/simplewindowsservice.asp

Yes you can copy what you have previously done.

The service is just a different way of packaging code.

In the service the main two functions are start and stop (which are auto created)

Just move your code across and put the startup functions in the Start Function.

Also note that VS 2005 Pro and above are the only versions that can create a windows service.

VS 2005 Express does not provide that functionality.
That last link is for C# but it does provide some instructions on installation of a service.

I find that not one article explains all you need to know. It normally takes a few.
Top Expert 2007

Author

Commented:
Thanx for the help.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial