ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old December 12th, 2002, 08:23 AM
amar.sasture amar.sasture is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Posts: 2 amar.sasture User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Stopping a windows servicce

I have a windows service named 'TestService'. This service is done using VB.NET. It implements a timer which has some code in it.
I want to stop the service from a code within the service itself. I am overriding the OnStop() , but what i am trying to achieve is that anytime an error occours in my timer code, i want to stop the service ,not only disable the timer which i am doing right now, but also the status in the Service Control Manager in the control panel for services, should display the service status as Stopped.

Please help me with this as soon as possible. Thank you guys.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingASP Development > Stopping a windows servicce


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT