473,491 Members | 2,583 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to get the instance of a Website

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.
Nov 18 '05 #1
2 856
What?
--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET cs*********@REMOVETHISTEXTmetromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/

"Mark" <ma**@dynatechsolution.com> wrote in message
news:#e*************@tk2msftngp13.phx.gbl...
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.
Nov 18 '05 #2
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
"Mark" <ma**@dynatechsolution.com> wrote in message news:%2*****************@tk2msftngp13.phx.gbl...
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.
Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2197
by: VasantKumar Naidu | last post by:
Hi, I am making a new website. I have booked the server space and upload it frequently as and when I change something in my site. The problem is: I change something in my start.html file...
5
445
by: Greg | last post by:
Hi, I have been unable to resolve this error message: Object Ref not set to an instance of an object. The issue is that I cannot determine which object reference is causing the problem. ...
11
4296
by: syssyx | last post by:
I have a "CurrentUser" object in session that I want to access from each page of a vb.net website. I can successfully access everything if I include the following at the start of each pageload: ...
4
4500
by: Dave | last post by:
I have a global.asax file with Application_Start defined and create some static data there and in another module used in the asp.net application and I realize that static data is shared amongst...
1
7816
by: johnyjj2 | last post by:
Hello! I've got web application created for MSSQL and IIS. There are two directories in this application - Scripts and WebSite. In Script there is file CreateDb.sql. I need to run it so that it...
0
6974
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7146
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7183
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7356
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4878
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4573
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3074
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1389
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
277
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.