restart iis

M

Meelis Lilbok

Hi

Is it possible restart IIS from ASP?
I tryed activex dll, but it wont work, i think its an "user rights" problem
When i use this dll form vb6 all works fine.

Any other solution?


Best regards;


Meelis
 
E

Evertjan.

Meelis Lilbok wrote on 30 dec 2004 in
microsoft.public.inetserver.asp.general:
Is it possible restart IIS from ASP?
I tryed activex dll, but it wont work, i think its an "user rights"
problem When i use this dll form vb6 all works fine.

I hope not.

Try crashing the operating system?
Any other solution?

Sure, don't. Why would you want to do that in the first place?
 
M

Meelis Lilbok

Sure, don't. Why would you want to do that in the first place?

Because some clients dont know how to restart IIS, and in IIS4.0 when you
modifie
global.asa sometimes web application "hangs" and only restarting IIS or
system helps.
I update and upload files with FrontPage.

Mex
 
E

Evertjan.

Meelis Lilbok wrote on 30 dec 2004 in
microsoft.public.inetserver.asp.general:
Because some clients dont know how to restart IIS, and in IIS4.0 when
you modifie
global.asa sometimes web application "hangs" and only restarting IIS
or system helps.

Make a .bat-file that does that on the client machine, perhaps, to be
called by that client.
I update and upload files with FrontPage.

I would not do that. Why not upload the global.asa "by hand"?
 
J

Jeff Cochran

Is it possible restart IIS from ASP?
I tryed activex dll, but it wont work, i think its an "user rights" problem
When i use this dll form vb6 all works fine.

Any other solution?

Most restarts will require a sufficient access level to perform the
task, often local admin. I'd suggest instead of ASP you use a
shortcut on the user's desktop, to IISRestart or a NET STOP command.

Jeff
 
E

Evertjan.

Jeff Cochran wrote on 30 dec 2004 in
microsoft.public.inetserver.asp.general:
Most restarts will require a sufficient access level to perform the
task, often local admin. I'd suggest instead of ASP you use a
shortcut on the user's desktop, to IISRestart or a NET STOP command.

You could fake that by having an administrator level skeduled batch file
executing say every 10 minutes, checking for existence of a file
"restart.iis" that could be created by a passworded asp
"Scripting.FileSystemObject"
execution.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,083
Messages
2,570,591
Members
47,212
Latest member
RobynWiley

Latest Threads

Top