Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

How can a virtual root be defined programmatically?

 
   Web Hosting and Web Master Forums (Home) -> IIS RSS
Next:  IIS 6 and sessions.  
Author Message
psteele

External


Since: Nov 10, 2004
Posts: 3



(Msg. 1) Posted: Wed Nov 10, 2004 7:54 am
Post subject: How can a virtual root be defined programmatically?
Archived from groups: microsoft>public>inetserver>iis (more info?)

We have an application that requires us to define a virtual root in IIS
programmatically rather than through the IIS manager. How can this be done?

 >> Stay informed about: How can a virtual root be defined programmatically? 
Back to top
Login to vote
user2321

External


Since: Oct 22, 2004
Posts: 49



(Msg. 2) Posted: Wed Nov 10, 2004 8:15 am
Post subject: RE: How can a virtual root be defined programmatically? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Peter Steele" wrote:
 > We have an application that requires us to define a virtual root in IIS
 > programmatically rather than through the IIS manager. How can this be done?

You would use ADSI or WMI:
<a style='text-decoration: underline;' href="http://www.iisfaq.com/Default.aspx?tabid=2537" target="_blank">http://www.iisfaq.com/Default.aspx?tabid=2537</a><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: How can a virtual root be defined programmatically? 
Back to top
Login to vote
psteele

External


Since: Nov 10, 2004
Posts: 3



(Msg. 3) Posted: Wed Nov 10, 2004 10:38 am
Post subject: Re: How can a virtual root be defined programmatically? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Is there any reason we couldn't update metabase.xml explicitly and add the
virtual dir manually? I realize this probably isn't a recommended way but in
our case the addition of this virtual root will happen once and never be
changed, and it happens during configuration of our web server. We could
create the root with IIS of course but we want to automate the process.

"Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message
news:B11B5CF1-D780-46AB-B8ED-338632BAD9C8@microsoft.com...
 > "Peter Steele" wrote:
  >> We have an application that requires us to define a virtual root in IIS
  >> programmatically rather than through the IIS manager. How can this be
  >> done?
 >
 > You would use ADSI or WMI:
<font color=purple> > <a style='text-decoration: underline;' href="http://www.iisfaq.com/Default.aspx?tabid=2537</font" target="_blank">http://www.iisfaq.com/Default.aspx?tabid=2537</font</a>><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: How can a virtual root be defined programmatically? 
Back to top
Login to vote
user2321

External


Since: Oct 22, 2004
Posts: 49



(Msg. 4) Posted: Thu Nov 11, 2004 5:28 am
Post subject: Re: How can a virtual root be defined programmatically? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Are you saying you want to open metabse.xml with a text editor and add the
entry? You could do that.

If you want to automate it, than ADSI or WMI is the way to go. You would
call those objects in your code.

"Peter Steele" wrote:

 > Is there any reason we couldn't update metabase.xml explicitly and add the
 > virtual dir manually? I realize this probably isn't a recommended way but in
 > our case the addition of this virtual root will happen once and never be
 > changed, and it happens during configuration of our web server. We could
 > create the root with IIS of course but we want to automate the process.
 >
 > "Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message
 > news:B11B5CF1-D780-46AB-B8ED-338632BAD9C8@microsoft.com...
  > > "Peter Steele" wrote:
   > >> We have an application that requires us to define a virtual root in IIS
   > >> programmatically rather than through the IIS manager. How can this be
   > >> done?
  > >
  > > You would use ADSI or WMI:
  > > <a style='text-decoration: underline;' href="http://www.iisfaq.com/Default.aspx?tabid=2537" target="_blank">http://www.iisfaq.com/Default.aspx?tabid=2537</a>
 >
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: How can a virtual root be defined programmatically? 
Back to top
Login to vote
psteele

External


Since: Nov 10, 2004
Posts: 3



(Msg. 5) Posted: Thu Nov 11, 2004 9:33 am
Post subject: Re: How can a virtual root be defined programmatically? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I decided to write the code. Pretty simple in C#...

"Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message
news:32358567-DF02-4CC1-A525-D824F5281CB3@microsoft.com...
 > Are you saying you want to open metabse.xml with a text editor and add the
 > entry? You could do that.
 >
 > If you want to automate it, than ADSI or WMI is the way to go. You would
 > call those objects in your code.
 >
 > "Peter Steele" wrote:
 >
  >> Is there any reason we couldn't update metabase.xml explicitly and add
  >> the
  >> virtual dir manually? I realize this probably isn't a recommended way but
  >> in
  >> our case the addition of this virtual root will happen once and never be
  >> changed, and it happens during configuration of our web server. We could
  >> create the root with IIS of course but we want to automate the process.
  >>
  >> "Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message
  >> news:B11B5CF1-D780-46AB-B8ED-338632BAD9C8@microsoft.com...
   >> > "Peter Steele" wrote:
   >> >> We have an application that requires us to define a virtual root in
   >> >> IIS
   >> >> programmatically rather than through the IIS manager. How can this be
   >> >> done?
   >> >
   >> > You would use ADSI or WMI:
<font color=brown>   >> > <a style='text-decoration: underline;' href="http://www.iisfaq.com/Default.aspx?tabid=2537</font" target="_blank">http://www.iisfaq.com/Default.aspx?tabid=2537</font</a>>
  >>
  >>
  >><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: How can a virtual root be defined programmatically? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Need virtual directory to act like the root - I've got a development machine where multiple site are worked on. Each site is in a seperate virtual directory. When a URL begins with "/", instead of going to the root of IIS I need it to got to the root of my virtual directory. Is ther...

IIS Virtual directory as root - Is there a way to make IIS use a virtual directory as the root of the website? Thanks in advance.

Using a virtual directory as the root of a website - Hi, I am wondering if its possible to do the following: I have a website that I created some time ago that was set up to be the root of a site - ex: http://myWebSite.com. The problem with it is that in order to develop with it, I have to put the entire..

Add virtual root from command line - I have an installation program which installs a virtual root on the default website. In NT4 and Win2K I was able to accomplish this by adding a registry key to HKLM/System/CurrentControlSet/Services/W3SVC/Parameters/VirtualRoots. This no longer seems to...

help creating a virtual root across a firewall - I'm trying to create a virtual root between my IIS box and my application server, but my application server is behind a firewall. What port(s) do I need to open in order to do this? 139?
   Web Hosting and Web Master Forums (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]