Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Is there a way to restart your IIS Programmitcally??

Reply
Thread Tools

Is there a way to restart your IIS Programmitcally??

 
 
firas489@gmail.com
Guest
Posts: n/a
 
      01-05-2006
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

 
Reply With Quote
 
 
 
 
Kyle Peterson
Guest
Posts: n/a
 
      01-05-2006
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


<> wrote in message
news: 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
>



 
Reply With Quote
 
 
 
 
firas489@gmail.com
Guest
Posts: n/a
 
      01-05-2006
Thanx Kyle for the reply
That was helpful

 
Reply With Quote
 
Bob Barrows [MVP]
Guest
Posts: n/a
 
      01-05-2006
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"


 
Reply With Quote
 
Slim
Guest
Posts: n/a
 
      01-05-2006
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




<> wrote in message
news: 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
>



 
Reply With Quote
 
Bob Barrows [MVP]
Guest
Posts: n/a
 
      01-05-2006
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
>
>
>
>
> <> wrote in message
> news: 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.


 
Reply With Quote
 
Kyle Peterson
Guest
Posts: n/a
 
      01-05-2006
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]" <> wrote in message
news:...
> 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
>>
>>
>>
>>
>> <> wrote in message
>> news: 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.
>
>



 
Reply With Quote
 
Dave Anderson
Guest
Posts: n/a
 
      01-06-2006
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.


 
Reply With Quote
 
Slim
Guest
Posts: n/a
 
      01-06-2006

"Bob Barrows [MVP]" <> wrote in message
news:...
> 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
>>
>>
>>
>>
>> <> wrote in message
>> news: 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.
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Parsing Binary Structures; Is there a better way / What is your way? Paul Rubin Python 5 08-06-2009 08:06 AM
Restart Now - Restart Later another MickG Computer Support 14 04-24-2006 02:55 AM
XP restart vs msconfig restart Opsimath Computer Support 4 07-31-2005 02:58 PM
Re: Must I Restart IIS? Hans Kesting ASP .Net 1 01-10-2004 02:55 AM
Re: Must I Restart IIS? Rick Lemons ASP .Net 0 01-10-2004 02:42 AM



Advertisments