3

Consider a .NET application that performs lots of configuration changes in IIS such as changing Virtual Directories or enabling compression. With IIS6 everything could be accomplished using the metabase through DirectoryServices.

However in IIS7, the Metabase compatiblity is an optional component, so I'm assuming that alternative ways should be used in order to programmatically perform configuration changes. What's the right way of doing those? Should I directly edit the applicationHost.config file or is there a recommended API?

2 Answers 2

8

I believe Microsoft.Web.Administration has what you are looking for.

Sign up to request clarification or add additional context in comments.

Comments

1

You could use :

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.