asp.net - Automated creation of IIS 6.0 websites -
We have a web application portal that hosts many applications with each of their IIS websites, so every time we do our own To adopt a code, developer workstation, or another machine to run the server, we will have to prepare all the websites for each of our applications, (and of course this list keeps on growing). Is there an API call to create an IIS website, so that I can store all the necessary information in a database table and then write a Winform program that will check the table and automatically create an IIS website for each record?
If you want to do it in the WinForms / Console application, I recommend the Directory Services Namespace.
Here are some good documents:
For example, directories for creating sites and virtual:
System.DirectoryServices
Namespace is a managed wrapper around ADSI API that uses various IIS administrative scripts. For more information about different metabase properties, you would recommend this reference:
If or when you use IIS Go ahead on 7, then I should consult Microsoft.Web.Administration
Namespace and APPCMD
tool.
Comments
Post a Comment