How to get the instance of a Website

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.
 
C

clintonG

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.
 
J

Jason DeFontes

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,434
Messages
2,571,689
Members
48,796
Latest member
Greg L.

Latest Threads

Top