Re: How can a virtual root be defined programmatically?

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Peter Steele (psteele_at_z-force.com)
Date: 11/10/04


Date: Wed, 10 Nov 2004 10:38:23 -0800

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:
> http://www.iisfaq.com/Default.aspx?tabid=2537



Relevant Pages

  • RE: Error while running web service
    ... It sounds like you need to make your directory a virtual root under the default web. ... You can't just copy a directory with a web service application into wwwroot without then configuring the directory as a virtual directory in IIS admin. ... If I run this project without debugging then I get this error. ... below and modify your configuration file appropriately. ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: One web.config, for multiple domains
    ... I'm not sure I understood the use of virtual root. ... >> server, and set up the domains on IIS to point to these folders. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Server.MapPath("../../dbq/myDB.mdb") doesnt work
    ... But instead I get an error message saying ... > IIS try to go up three directories in the file system, ... > its virtual root. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Cant browse pages w/ .ASPX code
    ... Is IIS actually running? ... check by creating an extremely simple HTML page and browing that, ... Call it test.htm, place it in the root of your virtual directory, then try ... Can you browse the virtual root of the server itself? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Fixed but no idea why.
    ... reverse DNS checks will work. ... itself as (EHLO/HELO hostname). ... this broken, there is absolutely no reason to alter the IIS behavior, ...
    (microsoft.public.inetserver.iis.smtp_nntp)