Programmatically creating an IIS7 site

You may also like...

6 Responses

  1. Ryan says:

    Great example! This is just what I needed to get started with IIS 7.

  2. Faheem Sial says:

    hi m using this code and i m getting Invalid Application PAth error.i m passing it following value;

    app.Path = “c:inetpubwwwrootmydomainwww”;

    could u please help me out and also tell me the important list of properties to set or list of all website properties.Thanx

  3. Yaron Avital says:

    HI, great example

    a minor typo,
    replace this line:
    Site site = mgr.Sites[“siteName”];

    with this:

    Site site = mgr.Sites[siteName];

  4. Dormand says:

    Nice. It works

  5. Geoff says:

    Thanks! Any idea how to specify a specific user/password for the connect as property?

  6. zeeshan says:

    Great Job man!!

Click on a tab to select how you'd like to leave your comment

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>