473,382 Members | 1,423 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,382 software developers and data experts.

restart iis

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
Jul 22 '05 #1
5 3707
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?
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 22 '05 #2
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
Jul 22 '05 #3
Meelis Lilbok wrote on 30 dec 2004 in
microsoft.public.inetserver.asp.general:
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.


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"?
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 22 '05 #4
On Thu, 30 Dec 2004 10:53:10 +0200, "Meelis Lilbok"
<me***********@deltmar.ee> wrote:
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
Jul 22 '05 #5
Jeff Cochran wrote on 30 dec 2004 in
microsoft.public.inetserver.asp.general:
On Thu, 30 Dec 2004 10:53:10 +0200, "Meelis Lilbok"
<me***********@deltmar.ee> wrote:
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.


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.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 22 '05 #6

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. --------------------------------------------------------------------------- -------...
1
by: localhost | last post by:
In the Application_OnStart, I make some data calls and place the results in the HTTP cache. Sometimes, the database is not available when the application starts up, so I want to sleep for 20...
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.