>>>>I have written code that will create a Virtual web site and virtual directories underneath. I'm having difficulty accessing the newly created web server.
>>>
>>>>oWebServer = GetObject( "IIsWebServer", < "Site Number" > )
>>>
>>>What is the exact syntax you're trying to use?
>>
>>I apologize for being unclear.
>>Below is the code that I am using to create the web site and virtual root. The code is written in VFP but the VB code is very similar. This code works.
>>
>>I then create another web site but I create it manually from within the Microsoft Management Console and call the site TestWeb2.
>>
>>The first in this test is given Site number '11'.
>>The second in this test is given Site number '12'.
>>
>>I then run the following test.
>>oWebServer1 = GetObject( "IIS://LocalHost/W3SVC/11" )
>>oWebServer2 = GetObject( "IIS://LocalHost/W3SVC/12" )
>>
>
>Hmm. I'm not sure either. I have an ADSI browser utility that I use to browse the IIS Metabase for stuff like this- would you like me to send it to you?
Yes, please.
Send it to
Dan.
Have you teste the above code and seen the same results?