5,153,477 members and growing! (16,885 online)
Email Password   helpLost your password?
Languages » C# » Utilities     Intermediate

IIsAdmin.NET: Create Multiple Web Sites Under Windows XP

By Mark Belles, Gabe Wishnie

Tool for creating multiple web site definitions under Windows XP.
C++, C#.NET 1.1, WinXP, Windows, .NET, WinForms, IIS, VS, IIS 5, VS.NET2003, Dev

Posted: 31 May 2005
Updated: 16 Jun 2005
Views: 114,593
Announcements



Search    
Advanced Search
Sitemap
32 votes for this Article.
Popularity: 7.14 Rating: 4.74 out of 5
0 votes, 0.0%
1
0 votes, 0.0%
2
0 votes, 0.0%
3
3 votes, 9.7%
4
28 votes, 90.3%
5

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

About the Authors

Mark Belles


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
Occupation: Software Developer (Senior)
Location: United States United States

Gabe Wishnie


.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
Occupation: Web Developer
Location: United States United States

Other popular C# articles:

Article Top
Sign Up to vote for this article
You must Sign In to use this message board.
FAQ FAQ Noise ToleranceSearch Search Messages 
 Layout  Per page   
 Msgs 1 to 25 of 66 (Total in Forum: 66) (Refresh)FirstPrevNext
Subject  Author Date 
GeneralIt Says the Zip is Corrupted?memberMarkGordon9:40 29 Jan '08  
GeneralThank youmemberArkadiy Kuleshov4:19 10 Dec '07  
Generaldon't have / want .net ? get the original IIsAdmin program.membermarioletto17:02 16 Nov '07  
GeneralNewbie -- trying to open a new webmemberjno.5:19 2 Aug '07  
GeneralRe: Newbie -- trying to open a new webmemberMark (Code6) Belles6:49 2 Aug '07  
QuestionHow to remove entry?memberDEGT4:02 21 Jun '07  
GeneralGreat stuff!!! Was looking for something like this for ages!memberk-sea14:43 1 May '07  
GeneralGetting it to work with ASP.NET 2.0memberDEGT11:08 3 Apr '07  
GeneralBrilliantmemberrtbug14:57 2 Apr '07  
GeneralYes, yes, yesmemberbedny10:14 2 Apr '07  
GeneralWhere's the New Version!memberdba32118:37 15 Mar '07  
GeneralRe: Where's the New Version!memberGabe Wishnie7:40 16 Mar '07  
GeneralRe: Where's the New Version!memberMark (Code6) Belles9:49 16 Mar '07  
GeneralRe: Where's the New Version!memberstevece5:13 22 May '07  
GeneralRe: Where's the New Version!membertimgaunt0:21 7 Nov '07  
GeneralSuggestionsmemberEblingMis4:50 13 Mar '07  
GeneralNo More HTTP Support Across LANmemberclintonG5:05 10 Mar '07  
GeneralProblem with debug ... Please, help.membergena8513:37 11 Jan '07  
GeneralGreat tool but...memberDavidBSmith10:51 14 Nov '06  
GeneralRe: Great tool but...memberFreeToTry11:17 25 Apr '07  
QuestionUpdated Source CodememberChrisAdams23:47 2 Nov '06  
GeneralHow to use with Visual Studio 2005memberclintonG14:13 18 May '06  
GeneralRe: How to use with Visual Studio 2005memberGabe Wishnie16:21 18 May '06  
GeneralRe: How to use with Visual Studio 2005memberclintonG11:37 19 May '06  
GeneralBeing prompted for a passwordsupporterpspeth8:45 16 Mar '06  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 16 Jun 2005
Editor: Smitha Vijayan
Copyright 2005 by Mark Belles, Gabe Wishnie
Everything else Copyright © CodeProject, 1999-2008
Web16 | Advertise on the Code Project