|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How can I get a list of web sites hosted by IIS?I need to be able to list web sites hosted on the local machine by IIS so
that I can install my web app to the correct directory (I don't want to install to the 'Default Web Site'.) -mdb I'd say read the metabase.
You will most likely need to use the System.DirectoryServices namespace. Some Invoking will be necessary as there are no wrappers for IIS. Use the following IIS documentation to help you: IIS 6: http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/d91983bf-6c67-46f8-9db9-a8ab502e55d3.mspx IIS 5: go to Active Server Pages Guide > Administering IIS Programmatically http://www.microsoft.com/windows2000/en/server/iis/ Thanks, Matt Show quote "Michael Bray" <mbray@makeDIntoDot_ctiusaDcom> wrote in message news:Xns9766A042872BEmbrayctiusacom@207.46.248.16... >I need to be able to list web sites hosted on the local machine by IIS so > that I can install my web app to the correct directory (I don't want to > install to the 'Default Web Site'.) > > -mdb I have also heard that you can read through the Metabase XML of an IIS 6
(but not IIS 5) server as well though I have not tried this. Thanks, Matt Show quote "ME" <trash.trash@comcast.netREMOVETHIS> wrote in message news:eaudnX7zrt9OhHDenZ2dnUVZ_sCdnZ2d@comcast.com... > I'd say read the metabase. > > You will most likely need to use the System.DirectoryServices namespace. > Some Invoking will be necessary as there are no wrappers for IIS. Use the > following IIS documentation to help you: > IIS 6: > http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/d91983bf-6c67-46f8-9db9-a8ab502e55d3.mspx > > IIS 5: > go to Active Server Pages Guide > Administering IIS Programmatically > http://www.microsoft.com/windows2000/en/server/iis/ > > > Thanks, > > Matt > > > "Michael Bray" <mbray@makeDIntoDot_ctiusaDcom> wrote in message > news:Xns9766A042872BEmbrayctiusacom@207.46.248.16... >>I need to be able to list web sites hosted on the local machine by IIS so >> that I can install my web app to the correct directory (I don't want to >> install to the 'Default Web Site'.) >> >> -mdb > > |
|||||||||||||||||||||||