473,386 Members | 1,823 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How can I start and stop the service ?

Hi EveryBody

In VB.Net how can I make windows application project that can start and stop the service manually

Any help will be appreciated

Husa

Jul 21 '05 #1
6 1561
Look into ServiceController class.

"Husam" <an*******@discussions.microsoft.com> wrote in message
news:7A**********************************@microsof t.com...
Hi EveryBody:

In VB.Net how can I make windows application project that can start and stop the service manually?
Any help will be appreciated.

Husam

Jul 21 '05 #2
Look into ServiceController class.

"Husam" <an*******@discussions.microsoft.com> wrote in message
news:7A**********************************@microsof t.com...
Hi EveryBody:

In VB.Net how can I make windows application project that can start and stop the service manually?
Any help will be appreciated.

Husam

Jul 21 '05 #3
In the command line, you can use:

IISRESET /STOP
IISREST /START

You can do a .BAT file or .exe...
--
FF
www.francofigun.com.ar
www.microsofties.com.ar
UIN: 305336919
MSN: fr*********@hotmail.com

"Husam" <an*******@discussions.microsoft.com> escribió en el mensaje
news:7A**********************************@microsof t.com...
Hi EveryBody:

In VB.Net how can I make windows application project that can start and stop the service manually?
Any help will be appreciated.

Husam

Jul 21 '05 #4
In the command line, you can use:

IISRESET /STOP
IISREST /START

You can do a .BAT file or .exe...
--
FF
www.francofigun.com.ar
www.microsofties.com.ar
UIN: 305336919
MSN: fr*********@hotmail.com

"Husam" <an*******@discussions.microsoft.com> escribió en el mensaje
news:7A**********************************@microsof t.com...
Hi EveryBody:

In VB.Net how can I make windows application project that can start and stop the service manually?
Any help will be appreciated.

Husam

Jul 21 '05 #5
Hi Husan,

Please do not multipost, send more messages to newsgroups, crosspost, send
one message to more newsgroups.

There are more answers in the newsgroup languages.vb

Cor
Jul 21 '05 #6
Hi Husan,

Please do not multipost, send more messages to newsgroups, crosspost, send
one message to more newsgroups.

There are more answers in the newsgroup languages.vb

Cor
Jul 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: 0to60 | last post by:
I have a windows service that when started creates two threads: one thread that runs a TcpListener waiting for TcpClients to connect, and another thread that reads from the resulting sockets. My...
3
by: mpriem | last post by:
Hi, I am developing my very first Windows Service. I want to query AD every 5 minutes to generate a Report which I will use in a website. I use the following testcode, but the service won't...
2
by: MA | last post by:
Hi all! I have developed a webservice that writeing and reading files in different folders. I need to be able to start and stop this service by using a web interface (start and stop button)....
0
by: Chris Dunaway | last post by:
I wish to write a small application that will allow me to start and stop a windows service on another server. Currently, I have to connect to the server using Remote Desktop Connection and then...
3
by: tshad | last post by:
I created a service in VS 2003 and the code works fine as an application, but not as a service. It installs fine, but when I try to start it, it tells me it was unable to start. Am I missing...
1
by: schaf | last post by:
Hi all! I'm still trying to start/stop a service on a remote computer. (I promiss that's the last new post because of this problem from my side) My situation: I've an application running under...
7
by: shai | last post by:
I am working at .net 1.1, writing in c#. I have windows service with a COM object. Every unexpected time The COM object throw an error that make my service get stuck (do not respond). I can catch...
4
by: carson | last post by:
I have written two windows services: - service A does some crunching of local data files and uploads them to a central processing computer via http. - service B monitors a manifest file on a...
1
by: aj | last post by:
A few service stop/start/restart questions on SQL Server 2005 SP2, which I'll call SQLS. It looks as if there are *potentially* 6 ways to start/stop SQLS Services like the engine itself,...
0
by: Arun21084 | last post by:
Hi, Recently I installed an application HP SIP(Service Information Portal) on a Windows 2000 server.The application comes along with an installation of Tomcat 5.0.19. Already there was an Apache...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.