How to get the instance of a Website

  • Thread starter Thread starter Mark
  • Start date Start date
M

Mark

I am running IIS6 on a Windows 2000 system. How can I access the properties of an instance of a website such as default documents etc. from an ASP .Net page?

Any help will be much appreciated.
 
What?


--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET (e-mail address removed)
URL http://www.metromilwaukee.com/clintongallagher/

I am running IIS6 on a Windows 2000 system. How can I access the
properties of an instance of a website such as default documents etc.
from an ASP .Net page?

Any help will be much appreciated.
 
I've never tried it, but here's a hint. Look in your Inetpub\AdminScripts directory and you'll find a bunch of VBScripts that perform various IIS admin functions. You may be able to adapt some of the techniques in those scripts to do what you want from an ASP page. You'll probably have to tweak the user account that ASP.NET runs as in order for the permissions to work. And it's questionable whether you'd be able to make changes to the web configuration from an app running on the same site, but you'll certainly have fun trying.

Good luck,

-Jason
I am running IIS6 on a Windows 2000 system. How can I access the properties of an instance of a website such as default documents etc. from an ASP .Net page?

Any help will be much appreciated.
 
Back
Top