IIS6 + Site Number

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Frederic Henry (anonymous_at_discussions.microsoft.com)
Date: 02/17/04


Date: Mon, 16 Feb 2004 19:46:05 -0800

I'm trying to change the UploadReadAheadSize for one specific script, but I can't find the site number (or at least I don't think I can).

I've gone through the metabase.xml file, and I thought I had found it, and since IIS6 does not have a metaedit equivalent it's hard to verify this.

My script is the following:

Dim WebServer, UploadReadAheadSize
Set WebServer = GetObject("IIS://localhost/W3SVC/sitenum/folder/script.asp")

' Get UploadReadAheadSize property
UploadReadAheadSize = WebServer.UploadReadAheadSize

' Set another size
WebServer.UploadReadAheadSize = 0
WebServer.SetInfo

But whenver I use a site number, folder, and proper script file (not as listed above) I get the following error:
(null): The system cannot find the path specified.

Which, since the path/script file name are accurate, I'm not getting the site number correct.

Any help would be appreciated. Thanks.

fh.