Partager via


My IIS 6.0 Web Manager - Manage your Web Sites, Application Pools from any where on the Web.

A Web administrator has to have access to the IIS server in order to ensure that any diagnostic/preventive measures can be performed at any point of time. One has to ensure all the web sites are running up and fine during the course of a day. Activities like recycling Application pools, starting/stopping Web sites etc. are an essential part of this process. This may be most painful when you are away having a good time and you get a call that the web sites are having performance issues etc, and you are required to ensure they are recycled, restarted etc. etc.

I have written this Web application to ensure one has access to their IIS 6.0 Web server from any part of the world. I have used WMI features built on top of .Net. It has the following features at this point.

Application Pool related activities

· Recycle/Start/Stop Application Pool(s)

· Change Application Pool Identity.

· Check features like Application Pool Recycling options, Current state of an Application Pool and current Application Pool Identity.

· Enumerate an Application Pool to see the Web applications running underneath it.

Web Site related activities

· Start/Stop Web Site(s)

· Check features like current Web Site state, and some configuration related settings like Web Site physical path, Server Bindings, Secure Bindings, Authentication method, SSL access, Application Pool etc.

IISRESET

· At times the only way to recover from a problem is to restart IIS services. You can restart all IIS services like IISADMIN, SMTP and World Wide Web Publishing service from any where through this application.

There are tools available like MS Administration site, but it had somewhat limited features in my opinion. I intend to modify the existing features in my application as time permits.


Pre-requisites

· You need to have .Net Framework 2.0 installed on the IIS web server.

· If AJAX-enabled version of this application is deployed, you need to have Microsoft ASP.Net 2.0 AJAX Extensions 1.0 installed on the server for it to work.

Steps to deploy the application

1. Download the ZIP file attached with this post.

2. Extract all the contents to some physical folder on the IIS Web server.

3. Create a new web site (or better in my opinion, a new virtual Directory under any of your existing Internet-facing Web sites) and point it to this physical path for the extracted files/folders.

4. ***ENSURE that you create a new application Pool for this Virtual Directory, and put the application under this application pool. In such a scenario this application will not interfere with any of your existing web applications running on the server.

5. This application is built using ASP.Net 2.0 and has two flavors, AJAX-enabled and non-AJAX based. if you are using AJAX-enabled application you need to ensure Microsoft ASP.Net 2.0 AJAX Extensions 1.0 is installed on the server.

6. Open the web.config file associated with this application and modify the <appSettings> to reflect the name of your Application Pool and name of the Web site under which this application is running [Attached ZIP file contains a word document as well with detailed steps for deployment].

I have covered the essential features required for a web server management and plan to modify it with more granular features with time.

Here are some screen captures related to usage

image

image

image

image

image

****Ensure the application pool Identity entered forms a part of Local IIS_WPG group on the server.

image

image

Click on IIS Reset shown below to restart all IIS services like IISADMIN, FTP, SMTP and WWW.

image

When you reset IIS, you won't be able to browse to the Web application for a minute or so, depending upon how long it takes for the IIS services to stop and then start back running.

In this interval if you try to access the site you will see the following error:

For AJAX-enabled version, you will get a pop up as shown below:

image

For Non-AJAX version you will see the following page:

image

At any point you can check the status of the selected Application Pool and the selected Web site.

image

image


This is provided "AS IS".

Any constructive feedback is appreciated ;-)

Till next time, Cheers! 

 


 

Links for download:

AJAX enabled version: https://cid-d6e3b4cd95f9d0f2.skydrive.live.com/self.aspx/Public/AJAX%20enabled%20version.rar

Non-AJAX version: https://cid-d6e3b4cd95f9d0f2.skydrive.live.com/self.aspx/Public/Non-AJAX%20version.rar

Steps for Deployment: https://cid-d6e3b4cd95f9d0f2.skydrive.live.com/self.aspx/Public/Steps%20for%20Deployment.doc

*You can also download the AJAX version from here www.iis.net/downloads

Comments

  • Anonymous
    May 14, 2008
    Hello Saurabh, Great work indeed!!! The guru of all tools :) I am sure you would like to add some disclaimers for the intended audience. I like fonts like Calibri or Consolas. Try them ;)

  • Anonymous
    May 14, 2008
    Web Polling for loaded content instead of simple setTimeout Is HTML a Humane Markup Language? Split the

  • Anonymous
    May 15, 2008
    Hey Sanjeet, thanks for your comment and suggestions :-). Hope you are doing well, it's been a long time ....

  • Anonymous
    May 16, 2008
    That's uber-cool Saurabh!!! Way to go...

  • Anonymous
    May 16, 2008
    Finally I added it to Download section in the http://www.iis.net as well. Here is the link if you are interested. A lightweight IIS 6.0 Web Manager http://www.iis.net/downloads/default.aspx?tabid=34&g=6&i=1688

  • Anonymous
    May 16, 2008
    I wrote an ASP.Net 2.0 based Web application few days back using which you can manage basic functionality

  • Anonymous
    May 19, 2008
    Great stuff Saurabh!! This is just what I was looking for to help the support team. Thanks for posting. -John

  • Anonymous
    August 23, 2008
    In May this year I had written a Web application using which we can manage basic IIS settings through

  • Anonymous
    December 13, 2008
    Why would you upload a .rar file? I am just wondering what you are thinking?