programmatic IISconfiguration via ASP.NET application

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default programmatic IISconfiguration via ASP.NET application

    Hello,

    I am using ASP.NET to create a web-based application that allows users
    to create their own web-site on our server. A requirement is that the
    users have their own domain and particular IP address. A key to
    getting this to work is to allow the web application to create a new
    web root on the web server.

    1. Is there some API provided to configure IIS in the required fashion?
    2. Is this API available in .NET?
    3. If not, is there a readily availably .NET wrapper for it?

    For maximum generality, the web application should be able to create a
    new web root on some web server other than the one the application
    resides on. However, at the moment solving this problem for the
    single server is more urgent.

    Thanks,
    -Michael.



    Michael Porcelli Guest

  2. Similar Questions and Discussions

    1. programmatic usercontrol woes
      hello, i have a user control that works great, when its used as a design-time controls. however, when i try to use it as a programmtic control,...
    2. Programmatic Admin Access
      I'm looking into ways to access the MX 7 administrator through a programming API. So far all I've come up with is the...
    3. Programmatic Flash Video Encoding
      I?ve been looking for a Flash 8 encoder SDK, is there one? I can?t find a reference to it anyplace. I am trying to encode to Flash video...
    4. Programmatic link buttons
      Javatopia wrote: Event handlers for a dynamic control are called only if the control is recreated on postback. What you should do on...
    5. Datagrid programmatic
      Hi everyone I have to generate a bunch of datagrids. The # number of datagrids needed will be told by a method. That's why I have to build an...
  3. #2

    Default RE: programmatic IISconfiguration via ASP.NET application

    In VS.NET, you can maintenan your web site with classes in
    System.DirectoryServices, for example, to add a web site (Be careful that
    your ASPNET account has enough permission to do this):

    DirectoryEntry oWebService = new DirectoryEntry("IIS://LocalHost/W3SVC");
    DirectoryEntry oWebServer = oWebService.Children.Add("Test
    Site","IISWebServer");

    For more information about System.DirectoryServices, you can refer to MSDN
    or this article:

    HOW TO: Use the System.DirectoryServices Namespace in ASP.NET
    [url]http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q329986[/url]

    Luke

    (This posting is provided "AS IS", with no warranties, and confers no
    rights.)




    »OÆW·L³n§Þ³N¤ä´©³¡ Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139