Microsoft KB Archive/296125

= Calling the IsInherited Attribute of the GetPropertyAttribObj Method Returns 800A01B6 =

Article ID: 296125

Article Last Modified on 6/29/2004

-

APPLIES TO


 * Microsoft Internet Information Services 5.0

-



This article was previously published under Q296125



SYMPTOMS
When you reference the IsInherited attribute of the IIS Admin Object GetPropertyAttribObj method, you may receive the following error message:

Object doesn't support this property or method: 'objIIS.IsInterited'

0x800A01B6

NOTE: The error code may also be displayed as 438 or 1B6, depending on the environment that the GetPropertyAttribObj object was instantiated in and the error code formatting that is being used.



CAUSE
The IIS 5.0 product documentation incorrectly refers to the attribute as IsInherited, when the correct name is IsInherit. The correct information is listed below:



WORKAROUND
Use objIIS.Inherit instead of objIIS.Inherited to reference the attribute.



STATUS
Microsoft has confirmed that this is a problem in Microsoft Internet Information Services version 5.0.



MORE INFORMATION
This problem does not affect IIS 4.0 because the GetPropertyAttribObj method is not available with the NT Option Pack, which is the installation vehicle for IIS 4.0.

To programmatically obtain information about property inheritance in IIS 4.0 (or for an additional workaround in IIS 5.0), see the GetDataPaths method sample available from the following Microsoft Developer Network (MSDN) Web site:

http://www.microsoft.com/windows2000/en/server/iis/default.asp?url=/windows2000/en/server/iis/htm/asp/adsi0ewj.htm

If your computer has the IIS 4.0 product documentation installed, you can also obtain information about property inheritance in IIS 4.0 by viewing the IIS schema sample at the following Web site:

http://localhost/iishelp/iis/htm/sdk/aoii09bh.htm

Steps to Reproduce Behavior
On an IIS 5.0 server, create a file called Inherit.vbs, and paste the following sample code into that file: On Error Resume Next Set objIIS = GetObject(&quot;IIS://localhost/W3SVC/1/ROOT&quot;) Set objAttrib = objIIS.GetPropertyAttribObj(&quot;ScriptMaps&quot;) WScript.Echo WScript.Echo &quot;The following properties are set for &quot; & objAttrib.PropName WScript.Echo WScript.Echo &quot;   Inherit = &quot; & objAttrib.Inherit WScript.Echo &quot;   IsInherit = &quot; & objAttrib.IsInherited

If Err.Number <> 0 Then WScript.Echo WScript.Echo &quot; VBScript Error &quot; & Hex(Err.Number) & &quot;: &quot; & Err.Description End If If you replace objAttrib.IsInherited in the sample code with objAttrib.IsInherit, you receive the correct result.

