473,511 Members | 13,105 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Creating an IIS Application


Hi.

I have two questions:

1. How can I create an IIS Web Application with asp or with asp.net? I
have found some scripts that explain how to create an IIS Virtual
Directory, but this is not what I want to do. I already have a directory
and I want to assign an IIS Web Application to this directory, similarly
to the "create" button in the properties page of a directory in IIS
console.

2. How can I find the site id of the site my script is running on? The
term site id stands for the id that IIS assigns to each site it serves.
This is used in IIS metabase. For instance in the metabase path
"IIS://Localhost/W3SVC/2451/Root", "2451" is the id of the site.


Dr. Jones
Nov 19 '05 #1
3 1242
Dr Jones i don't really gey what u want to do
Patrick

*** Sent via Developersdex http://www.developersdex.com ***
Nov 19 '05 #2


OK, let's try once more:
I want to achieve with asp or asp.net code what is posible through the IIS
console for directories:

1. Open IIS Console
2. Select to "Web Sites"
3. Select a Web Site, eg "Default Web Site"
4. Select one of the sub directories (hopefully you will have at least
one...)
5. Right-click on it and go to "Properties".
6. Press the "Create" button, next to the application name, which is
somewhere in the middle of the properties dialog box.
This way you can create an IIS Web Application. However, I want to do the
same thing with asp or asp.net code. Does anybody know how to do it?

Dr. Jones



On Tue, 03 May 2005 04:41:00 -0700, Patrick Olurotimi Ige
<na********@hotmail.com> wrote:
Dr Jones i don't really gey what u want to do
Patrick

*** Sent via Developersdex http://www.developersdex.com ***


--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Nov 19 '05 #3
HI Dr. Jones:

Jesse has an example here:
http://weblogs.asp.net/jezell/archiv.../17/27869.aspx

BTW, in Inetpub\AdminScripts you'll find a VBScript file (adsutil.vbs)
that demonstrates how to perform a number common tasks.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Tue, 03 May 2005 11:13:59 +0300, "dr*****@cls.gr" <dr*****@cls.gr>
wrote:

Hi.

I have two questions:

1. How can I create an IIS Web Application with asp or with asp.net? I
have found some scripts that explain how to create an IIS Virtual
Directory, but this is not what I want to do. I already have a directory
and I want to assign an IIS Web Application to this directory, similarly
to the "create" button in the properties page of a directory in IIS
console.

2. How can I find the site id of the site my script is running on? The
term site id stands for the id that IIS assigns to each site it serves.
This is used in IIS metabase. For instance in the metabase path
"IIS://Localhost/W3SVC/2451/Root", "2451" is the id of the site.


Dr. Jones


Nov 19 '05 #4

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

Similar topics

2
9699
by: PK | last post by:
Hello, I am looking for help on the following. I'm trying to create a custom browser toolbar button that will do a few things. One that I'm trying to do at the moment is just simply return the...
0
1728
by: Robert | last post by:
I get these errors when creating a asp .net web application project in VS 2003 on a remote web server: "Microsoft Development Environment The Web was created successfully, but an error occurred...
1
1028
by: santhosh_176 | last post by:
:I Created a Pocket PC application for iPAQ 5450. Every thing went fine even installer creation. I could run the setup and install it into the actual device and worked fine. The application enables...
6
3230
by: DraguVaso | last post by:
Hi, In my application, on some given actions while debugging in Visual Studio, I suddenly get a "System.ComponentModel.Win32Exception was unhandled" Message="Error creating window handle."...
6
3654
by: Eran Kampf | last post by:
I am trying to dynamically create directories in my ASP.NET application (I am using Server.MapPath("/")+"test" as the folder) and I am getting a DirectoryNotFoundException saying "Could not find a...
15
6719
by: Carlos Lozano | last post by:
Hi, What is the right way to create an OCX COM component. The component is already registerred, but can't create an instance. I am using the reference to the interop module created. If I use...
0
1604
by: Peter D. Dunlap | last post by:
I have a number of web sites on my 2003 server, each of the independent sites (i.e., not subdirectories of the localhost site). The way I have always set these up in the past is: 1. Create a...
12
3139
by: Mats Lycken | last post by:
Hi, I'm creating a CMS that I would like to be plug-in based with different plugins handling different kinds of content. What I really want is to be able to load/unload plugins on the fly without...
5
3483
by: Sam777 | last post by:
I was under the impression that creating the app_offline.htm file at the root of the webapp would cause all handles to be closed so that the app could be removed. Unfortunately, this isn't the...
15
2790
by: David Thielen | last post by:
Hi; My ASP.NET app (C# calling J# under .net 2.0) creates a png file in a subdirectory to display as part of the created page. However, the bitmap will not display due to a security violation. ...
0
7245
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7144
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...
1
7085
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7512
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...
0
5671
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3227
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3214
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
785
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
449
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.