Re: How can a virtual root be defined programmatically?
From: Peter Steele (psteele_at_z-force.com)
Date: 11/11/04
- Next message: Scott Glover: "IIS Metabase"
- Previous message: Jim Carlock: "Re: FTP problem, Internet Explorer, IIS 5.0"
- In reply to: A_at_T: "Re: How can a virtual root be defined programmatically?"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 11 Nov 2004 09:33:13 -0800
I decided to write the code. Pretty simple in C#...
"Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message
news:32358567-DF02-4CC1-A525-D824F5281CB3@microsoft.com...
> Are you saying you want to open metabse.xml with a text editor and add the
> entry? You could do that.
>
> If you want to automate it, than ADSI or WMI is the way to go. You would
> call those objects in your code.
>
> "Peter Steele" wrote:
>
>> Is there any reason we couldn't update metabase.xml explicitly and add
>> the
>> virtual dir manually? I realize this probably isn't a recommended way but
>> in
>> our case the addition of this virtual root will happen once and never be
>> changed, and it happens during configuration of our web server. We could
>> create the root with IIS of course but we want to automate the process.
>>
>> "Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message
>> news:B11B5CF1-D780-46AB-B8ED-338632BAD9C8@microsoft.com...
>> > "Peter Steele" wrote:
>> >> We have an application that requires us to define a virtual root in
>> >> IIS
>> >> programmatically rather than through the IIS manager. How can this be
>> >> done?
>> >
>> > You would use ADSI or WMI:
>> > http://www.iisfaq.com/Default.aspx?tabid=2537
>>
>>
>>
- Next message: Scott Glover: "IIS Metabase"
- Previous message: Jim Carlock: "Re: FTP problem, Internet Explorer, IIS 5.0"
- In reply to: A_at_T: "Re: How can a virtual root be defined programmatically?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|