IIS Configuration
-
I am new to C# and I am looking at ways to write a IIS configuration dll. Would like the dll to create a new website outside of the root. something that i can point the directory to a new location and then create virtual directories on the main level as well as creating them down in subfolders and then setting some features on the virtual directory along with settings to some of the folders say turning one into an application. newsite - d:\mylocation - set basic auth - set permission to local logged in domain folder1 folder2 - set as application virtualdirectory1 virtualdirectory2 file2a file2b - set security permisions to not anonymous file2c folder3 folder4 file - change error page 402 and permisions I have all of these settings that I change when I setup this one site I know all the names and settings so they could be made hard coded except 6 things like the url, ip, port, root folder location for new site this will need to be passed into the program. Could someone point me in the right direction on this
-
I am new to C# and I am looking at ways to write a IIS configuration dll. Would like the dll to create a new website outside of the root. something that i can point the directory to a new location and then create virtual directories on the main level as well as creating them down in subfolders and then setting some features on the virtual directory along with settings to some of the folders say turning one into an application. newsite - d:\mylocation - set basic auth - set permission to local logged in domain folder1 folder2 - set as application virtualdirectory1 virtualdirectory2 file2a file2b - set security permisions to not anonymous file2c folder3 folder4 file - change error page 402 and permisions I have all of these settings that I change when I setup this one site I know all the names and settings so they could be made hard coded except 6 things like the url, ip, port, root folder location for new site this will need to be passed into the program. Could someone point me in the right direction on this
use WMI - Windows Management Instrumentation http://www.codeproject.com/csharp/wmi.asp