Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
Restart IIS from FireFox? Is there a button?
Old 09-12-2007, 03:13 PM Restart IIS from FireFox? Is there a button?
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
Is there a better way than going to the command prompt, typing

IISRESET
EXIT

And then hitting refresh?
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Learning Newbie is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-12-2007, 03:53 PM Re: Restart IIS from FireFox? Is there a button?
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
You could theoretically write a VBS or a batch file and execute it using Windows Shell through ASP. I've never really tried it before, though, so I don't know the ins and outs of it.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 09-12-2007, 03:55 PM Re: Restart IIS from FireFox? Is there a button?
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
You think that would work? Triggering an IIS restart from ASP? Because then I could just add a bookmark to that page. I wonder if Microsoft allows that kind of suicide?

If not, can you make FireFox buttons that point at batch files? Or, ideally, that run a batch file then refresh the current page? Now I'm just being greedy.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Old 09-12-2007, 03:58 PM Re: Restart IIS from FireFox? Is there a button?
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
Well the idea is that the ASP page calls an instance of the Windows Script Host, and then you go from there. Mind you, I never thought it all the way through and I just realized it probably wouldn't work since an IIS restart would probably stop the page from executing any further code and would probably render it useless.

Try it, though. Only way to find stuff out.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 09-12-2007, 06:46 PM Re: Restart IIS from FireFox? Is there a button?
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
Well, I tried making a batch file on the desktop. It works when I double click it, to restart the server. And I can add it to the bookmark toolbar that comes with FireFox. But instead of running the file, it displays it's contents. So I see black text that says "IISRESET".

Next I tried making a bookmark point directly at C:\Windows\System32\iisreset.exe but when I click it, FireFox prompts me to download the file, instead of running it.

Eventually I'll find more time on discovering a quick way to reset the server, than actually doing it.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Old 09-14-2007, 02:28 AM Re: Restart IIS from FireFox? Is there a button?
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,023
Name: Forrest Croce
Location: Seattle, WA
Trades: 0
You refuse to work in anything but .net, right? When you save the web.config file, IIS will bounce the web application it belongs to. If you give the iis_usr or whatever it is write privileges to that file, you can make a page that's coded to open and close the file when requested by a whitelist of IPs. And then you could bookmark that...?
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
Old 09-14-2007, 03:53 PM Re: Restart IIS from FireFox? Is there a button?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
On the IIS administration site that is installed along with IIS there are scripts for stopping and starting each site, maybe you could disect these?

or create a batch file to run IISRESET and call that from a WSH script
see http://support.microsoft.com/kb/202013 for more
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 09-24-2007, 04:55 PM Re: Restart IIS from FireFox? Is there a button?
Skilled Talker

Posts: 97
Name: Ganesh
Trades: 0
Learning Newbie,

You know what I would do. I would create windows app or a simple service and install in the webserver.

This service may look at a file or a table in a database. Create an asp page which can update a value in a file or database table.

In the service or app, add a condition value = something ( like 0) , use the service to issue the iis command and update the flag to 1.

Nice and easy control.
__________________
Gather. Search. Compare. Save on Hotel and Flight Prices @
Please login or register to view this content. Registration is FREE
sri_gan is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Restart IIS from FireFox? Is there a button?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.46223 seconds with 12 queries