I am researching remote management IIS7 programmatically.
I know MS have provided Application Host Administration API to config IIS, it's COM api.
I googled lots of resource, these two CreateNewElement and NewElement methods inside interface IAppHostElementCollection
can create a new web site or application pool.
I also follow this introduction.
first, I can successfully query a existing publishing point in IIS7,
but when I try to call these CreateNewElement and NewElemen and CommitChanges methods in IAppHostElementCollection
to create a new publishing points, I didn't get error in progress, but I didn't found my expected created publishing point on IIS?
If you may give me a little suggestes or demo code, thanks very much in advance.
Adam