Solved

creating a service

Posted on 2006-10-19
4
195 Views
Last Modified: 2010-04-23
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
0
Comment
Question by:sirbounty
  • 2
4 Comments
 
LVL 8

Assisted Solution

by:bman9111
bman9111 earned 50 total points
ID: 17770842
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.
0
 
LVL 4

Accepted Solution

by:
adam_pedley earned 200 total points
ID: 17770918
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.
0
 
LVL 4

Expert Comment

by:adam_pedley
ID: 17770920
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.
0
 
LVL 67

Author Comment

by:sirbounty
ID: 17802237
Thanx for the help.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now