473,396 Members | 2,004 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,396 software developers and data experts.

Is there a way to restart your IIS Programmitcally??

Sometimes i need to restart the IIS on a current server, but the
problems is that if i want to, then i have to contact them by either
email or phone, but sometimes it takes few hour to do it. So i wonder
if there Is a way to restart your IIS Programmitcally??
Thanx in adavnce

Best Regards
Firas S Assaad

Jan 5 '06 #1
8 3030
unless its your own server or your own dedicated server probably not without
asking

if it is your own server you remote access in and do an iisreset or you
could probably set something up in a different way

problem is stopping IIS effects every site on the server and under shared
hosting that is an issue
<fi******@gmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Sometimes i need to restart the IIS on a current server, but the
problems is that if i want to, then i have to contact them by either
email or phone, but sometimes it takes few hour to do it. So i wonder
if there Is a way to restart your IIS Programmitcally??
Thanx in adavnce

Best Regards
Firas S Assaad

Jan 5 '06 #2
Thanx Kyle for the reply
That was helpful

Jan 5 '06 #3
fi******@gmail.com wrote:
Sometimes i need to restart the IIS on a current server, but the
problems is that if i want to, then i have to contact them by either
email or phone, but sometimes it takes few hour to do it. So i wonder
if there Is a way to restart your IIS Programmitcally??

If you have permissions, you can issue a Net Stop command via a Shell
object. The problem is, the ASP user rarely will have the permissions
required to execute this command. so, te answer to your question is: yes
and no.

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jan 5 '06 #4
I had the same problem once
what I did is use scheduled tasks to run a script ever 15 minutes

the script would check a text file for the word reboot, if it found it, it
rested IIS

I also set a ASP page to writ to the text file

so all I had to do is go to my asp page and write "reboot" to the text file
and then the next time the script ran it restarted IIS


<fi******@gmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Sometimes i need to restart the IIS on a current server, but the
problems is that if i want to, then i have to contact them by either
email or phone, but sometimes it takes few hour to do it. So i wonder
if there Is a way to restart your IIS Programmitcally??
Thanx in adavnce

Best Regards
Firas S Assaad

Jan 5 '06 #5
This again requires you to have some control over the server ...

My question is: if IIS is locked up so it needs to be rebooted, how will an
asp page run to trigger the reboot?
Slim wrote:
I had the same problem once
what I did is use scheduled tasks to run a script ever 15 minutes

the script would check a text file for the word reboot, if it found
it, it rested IIS

I also set a ASP page to writ to the text file

so all I had to do is go to my asp page and write "reboot" to the
text file and then the next time the script ran it restarted IIS


<fi******@gmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Sometimes i need to restart the IIS on a current server, but the
problems is that if i want to, then i have to contact them by either
email or phone, but sometimes it takes few hour to do it. So i wonder
if there Is a way to restart your IIS Programmitcally??
Thanx in adavnce

Best Regards
Firas S Assaad


--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jan 5 '06 #6
I guess that when he remote access's in or runs netstop.. :)

Still a clever idea.. maybe not the best.. but clever
"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> wrote in message
news:up**************@TK2MSFTNGP11.phx.gbl...
This again requires you to have some control over the server ...

My question is: if IIS is locked up so it needs to be rebooted, how will
an
asp page run to trigger the reboot?
Slim wrote:
I had the same problem once
what I did is use scheduled tasks to run a script ever 15 minutes

the script would check a text file for the word reboot, if it found
it, it rested IIS

I also set a ASP page to writ to the text file

so all I had to do is go to my asp page and write "reboot" to the
text file and then the next time the script ran it restarted IIS


<fi******@gmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Sometimes i need to restart the IIS on a current server, but the
problems is that if i want to, then i have to contact them by either
email or phone, but sometimes it takes few hour to do it. So i wonder
if there Is a way to restart your IIS Programmitcally??
Thanx in adavnce

Best Regards
Firas S Assaad


--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.

Jan 5 '06 #7
Bob Barrows [MVP] wrote:
This again requires you to have some control over the server ...


True, but an arrangement might be made to give you your own Application Pool
under your control if the server is IIS 6. Wouldn't it then be possible to
cycle the Application Pool without disturbing others?

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
Jan 6 '06 #8

"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> wrote in message
news:up**************@TK2MSFTNGP11.phx.gbl...
This again requires you to have some control over the server ...

My question is: if IIS is locked up so it needs to be rebooted, how will
an
asp page run to trigger the reboot?

good quesion,

My problem was that i nereded to reboot the server not IIS, of cause thios
would not work in this case but a simular thing could work,

like access a page on the IIS server with xmlhttp.open for example, if it
fails reboot
Slim wrote:
I had the same problem once
what I did is use scheduled tasks to run a script ever 15 minutes

the script would check a text file for the word reboot, if it found
it, it rested IIS

I also set a ASP page to writ to the text file

so all I had to do is go to my asp page and write "reboot" to the
text file and then the next time the script ran it restarted IIS


<fi******@gmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Sometimes i need to restart the IIS on a current server, but the
problems is that if i want to, then i have to contact them by either
email or phone, but sometimes it takes few hour to do it. So i wonder
if there Is a way to restart your IIS Programmitcally??
Thanx in adavnce

Best Regards
Firas S Assaad


--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.

Jan 6 '06 #9

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

Similar topics

1
by: Piotr Trawiński | last post by:
I have this notorious problem: at some point pgsql simply hangs up and requires a restart. --------------------------------------------------------------------------- -------...
18
by: amdishigh | last post by:
We are experiencing the following problems concerning ASP.NET: our ASP.NET application, written in .NET 1.1 platform, and hosted in IIS 5.0 environment, experience frequent session timeout problem....
3
by: Pint | last post by:
I would like to know if there is a programatic way to force the Application object to restart. I have a hosted website where I will be unable to control the webserver (eg:iisreset), and I would...
3
by: John A Grandy | last post by:
In ASP.NET 1.1 and/or 2.0 ..... Is it possible to configure a web-app so that replacement of an .xml file ( physically located under the virtual dir root ) with a newer version of the file...
6
by: Leonardo Curros | last post by:
Hello, I would like to know what's the best way to restart one service. I would like to do it from the service itself. Is this possible? I try it with ServiceController.stop()...
8
by: kenneth fleckenstein nielsen | last post by:
hi guru's I want to restart my webservice when ever it throws an exception that isn't cought. can i do that by web.config or iss or how ??
4
by: shorti | last post by:
Can anyone explain in greater (and more comprehensive) detail what the RESTART option does in the ALTER TABLE table ALTER COLUMN statement. This is the description in Info Center: RESTART or...
3
by: MarkusJNZ | last post by:
Hi, I have two different applications running on 2003 both in two different vitrual directories. One application runs on the .NET framework 1.1 whilst the other runs on 2.0. If I change the...
1
by: Brian Simmons | last post by:
Hi All, I know that if you modify the web.config file or any file in the App_Code subfolder, that ASP.net 2.0 will "restart" the application (i.e. clear out any sessions, etc...). Are there...
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: 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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.