How to programmatically configure IIS7? (without using metabase)

Consider a .NET application that performs many configuration changes in IIS, such as changing virtual directories or enabling compression. With IIS6, everything can be done using metabase through DirectoryServices.

However, in IIS7, Metabase compatibility is an optional component, so I assume that alternative methods should be used to make configuration changes programmatically. What is the right way to do this? Should I directly edit the file applicationHost.configor is there a recommended API?

+3
source share

Source: https://habr.com/ru/post/1719141/


All Articles