Click here to Skip to main content
15,881,863 members
Articles / Web Development / IIS
Article

IIsAdmin.NET: Create Multiple Web Sites Under Windows XP

,
Rate me:
Please Sign up or sign in to vote.
4.70/5 (35 votes)
16 Jun 20052 min read 354.9K   4.1K   123   75
Tool for creating multiple web site definitions under Windows XP.

Sample Image - IIsAdminNet.jpg

Introduction

As web developers we all know that very rarely do we only get to work on a single site at a time. Many times we find ourselves juggling between web sites. As each site becomes more complex (virtual directories, web site configuration settings, etc.), the task of switching between different sites becomes more time consuming. Now throw in the fact that you can only create a single site under Windows XP Pro, and you have frustration waiting to happen.

Initial Solution

After looking for a bit, we were able to find a solution to the problem called IIS Admin. IIS Admin allowed for multiple site definitions to be created under Windows XP (with only a single site started at a time). At first this seemed like the answer to our prayers. We can create a separate site for each project, all the configuration changes would be saved with that site, and to switch we just start a different site. However, we soon realized IIS Admin came with a few interesting “features” of its own.

Initial Solution Drawbacks

First, the program did not show up in the taskbar. This meant that if the program lost focus it could be difficult to find again with multiple windows open. Second, if you created a site and failed to start it, the next time you opened IIS it would show up as an error. These among some others, proved to become a problem of its own when it came to introducing new developers to the program.

Final Solution

After dealing with explaining the program over and over, we decided to create IIS Admin in C# (hence IIsAdmin.NET was born) and while re-creating it, correct some of the features we found less then desirable. All of the interfacing with IIS is done via the Active Directory Service Interface (ADSI). Although the IIS ADSI provides much more functionality, we decided to keep IIsAdmin.NET’s primary function to creating the web site definition and switching between the active sites. All of the site management such as virtual directory creation can be done via IIS.

Sample screenshot

We also wanted to provide the code so others could pick up where we left off. Feel free to send us any improvements you make to be incorporated into future versions. Most of all enjoy, we hope it makes the task of switching between web projects frustration free.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Software Developer (Senior)
United States United States
Senior Application Developer specializing in Windows desktop and network development.

Professional Experience
- B.S. of Computer Science (Graduated 2001 - PSU)
- Senior Application Developer (8+ yrs)
- Microsoft Certified Professional

Primary Interests
- C#, C++, HTML, Javascript
- XML, ASP.NET, Web Services, SOAP, UDDI
- Socket programming and anything network related
- Reflection, Serialization, and Plugin Frameworks
- Owner-drawn controls and GDI+ goodness

Written By
Web Developer
United States United States
.NET Software Developer

Education
- Working towards M.S. Computer Science
- B.S. Computer Science
- B.S. Computer Information Systems
- Minor Mathematics

Professional
- Microsoft Certified Application Developer
- Microsoft Certified Professional
- C# ASP.NET Developer (4 years)

Other Interests
- Flash Remoting
- Video Encoding (Windows Media and Flash Video)
- Microsoft Content Management Server

More Programming Thoughts and Tips
- http://gabewishnie.blogspot.com

Comments and Discussions

 
GeneralRe: How to use with VS.net? Pin
Gabe Wishnie22-Sep-05 14:41
Gabe Wishnie22-Sep-05 14:41 
AnswerRe: How to use with VS.net? Pin
Gabe Wishnie22-Sep-05 14:39
Gabe Wishnie22-Sep-05 14:39 
GeneralIISAdmin minimized on Windows Startup Pin
ivanhalen16-Sep-05 2:14
ivanhalen16-Sep-05 2:14 
GeneralRe: IISAdmin minimized on Windows Startup Pin
Gabe Wishnie16-Sep-05 15:00
Gabe Wishnie16-Sep-05 15:00 
GeneralRe: IISAdmin minimized on Windows Startup Pin
Gabe Wishnie18-Sep-05 4:44
Gabe Wishnie18-Sep-05 4:44 
GeneralRe: IISAdmin minimized on Windows Startup Pin
ivanhalen18-Sep-05 5:28
ivanhalen18-Sep-05 5:28 
GeneralSmall Bug Pin
weiser_98@hotmail.com15-Sep-05 11:43
weiser_98@hotmail.com15-Sep-05 11:43 
GeneralRe: Small Bug Pin
Gabe Wishnie15-Sep-05 12:42
Gabe Wishnie15-Sep-05 12:42 
GeneralRe: Small Bug Pin
15-Sep-05 21:24
suss15-Sep-05 21:24 
GeneralRe: Small Bug Pin
Gabe Wishnie16-Sep-05 14:59
Gabe Wishnie16-Sep-05 14:59 
GeneralEasyIIS Pin
SirTrolle21-Jun-05 11:46
SirTrolle21-Jun-05 11:46 
GeneralRe: EasyIIS Pin
Gabe Wishnie21-Jun-05 12:06
Gabe Wishnie21-Jun-05 12:06 
Generaliismultiplex Pin
cvidler16-Jun-05 20:24
cvidler16-Jun-05 20:24 
GeneralRe: iismultiplex Pin
UncleJoeIt16-Jun-05 21:34
UncleJoeIt16-Jun-05 21:34 
GeneralRe: iismultiplex Pin
cvidler16-Jun-05 21:51
cvidler16-Jun-05 21:51 
GeneralRe: iismultiplex Pin
cornejoserrano18-Apr-06 2:32
cornejoserrano18-Apr-06 2:32 
GeneralAdded list double click Pin
willhaney8-Jun-05 13:16
willhaney8-Jun-05 13:16 
GeneralRe: Added list double click Pin
Gabe Wishnie8-Jun-05 15:17
Gabe Wishnie8-Jun-05 15:17 
GeneralExactly what i have been looking for Pin
henok1-Jun-05 17:34
henok1-Jun-05 17:34 
GeneralRe: Exactly what i have been looking for Pin
henok1-Jun-05 23:47
henok1-Jun-05 23:47 
GeneralRe: Exactly what i have been looking for Pin
Mark Belles2-Jun-05 3:51
Mark Belles2-Jun-05 3:51 
GeneralRe: Exactly what i have been looking for Pin
henok2-Jun-05 6:25
henok2-Jun-05 6:25 
GeneralRe: Exactly what i have been looking for Pin
Gabe Wishnie2-Jun-05 6:09
Gabe Wishnie2-Jun-05 6:09 
GeneralRe: Exactly what i have been looking for Pin
henok2-Jun-05 6:40
henok2-Jun-05 6:40 
GeneralRe: Exactly what i have been looking for Pin
Gabe Wishnie2-Jun-05 6:56
Gabe Wishnie2-Jun-05 6:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.