FIX: The MWA API cannot determine whether an element is present in an IIS 7.0 configuration file if the element has no child elements and has no attributes defined

Article translations Article translations
Article ID: 970773 - View products that this article applies to.
Expand all | Collapse all

On This Page

SYMPTOMS

Consider the following scenario:
  • You have Internet Information Services (IIS) 7.0 installed on a server.
  • You define a non-collection element in the configuration schema file.
  • However, you do not define any child elements for this element, and you do not define any attributes for this element.
In this scenario, the Microsoft.Web.Administration (MWA) API cannot determine whether the element is present or not in a given IIS configuration file.

For example, you define the system.webServer/example section schema in the configuration schema file as follows:
<sectionSchema name="system.webServer/example">
<element name="e" />
</sectionSchema>
In this example, the element e is a non-collection element. Additionally, the element e has no child elements and has no attributes.

Now consider the following two configuration examples:

Configuration 1
<system.webServer/example>
<e />
<system.webServer/example/>
Configuration 2
<system.webServer/example />
In these two configuration examples, you cannot use the MWA API to determine whether the element e is present or is not present.

RESOLUTION

Hotfix information

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing the problem described in this article. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site:
http://support.microsoft.com/contactus/?ws=support
Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

Prerequisites

You must have IIS 7.0 installed to apply this hotfix. You must apply this hotfix on a computer that is running Windows Vista Service Pack 1 or Windows Server 2008.

Restart requirement

You must restart the computer if the IIS is running when you apply this hotfix.

Hotfix replacement information

This hotfix does not replace any other hotfixes.

File information

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
For all supported x86-based versions of Windows Server 2008 and of Windows Vista
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Admwprox.dll7.0.6001.2242851,71208-May-200913:09x86
Ahadmin.dll7.0.6001.2242827,13608-May-200913:09x86
Appcmd.exe7.0.6001.22428154,11208-May-200911:27x86
Appcmd.xmlNot Applicable3,65401-Apr-200918:54Not Applicable
Applicationhost.configNot Applicable7,98901-Apr-200918:54Not Applicable
Appobj.dll7.0.6001.22428311,80808-May-200913:09x86
Aspnetca.exe7.0.6001.22428182,78408-May-200911:27x86
Aspnet_schema.xmlNot Applicable38,78601-Apr-200918:55Not Applicable
Fx_schema.xmlNot Applicable26,94308-May-200908:10Not Applicable
Iismig.dll7.0.6001.22428209,40808-May-200913:15x86
Iisreg.dll7.0.6001.2242889,08808-May-200913:12x86
Iisres.dll7.0.6001.22428193,02408-May-200911:27x86
Iisreset.exe7.0.6001.2242814,84808-May-200911:27x86
Iisrstap.dll7.0.6001.224288,19208-May-200913:12x86
Iisrstas.exe7.0.6001.2242831,23208-May-200911:27x86
Iisrtl.dll7.0.6001.22428153,60008-May-200913:12x86
Iissetup.exe7.0.6001.22428228,86408-May-200911:27x86
Iissyspr.dll7.0.6001.2242859,39208-May-200913:12x86
Iisutil.dll7.0.6001.22428202,75208-May-200913:12x86
Iis_schema.xmlNot Applicable77,83001-Apr-200918:55Not Applicable
Nativerd.dll7.0.6001.22428331,77608-May-200913:14x86
Redirection.configNot Applicable49001-Apr-200918:55Not Applicable
Rsca.dll7.0.6001.2242826,62408-May-200913:15x86
Rscaext.dll6.0.6001.2242838,91208-May-200913:15x86
Rscaext.xmlNot Applicable8,36301-Apr-200918:55Not Applicable
W3ctrlps.dll7.0.6001.224289,21608-May-200913:15x86
Wamregps.dll7.0.6001.2242810,75208-May-200913:15x86
Admwprox.dll7.0.6002.2213151,71208-May-200913:03x86
Ahadmin.dll7.0.6002.2213127,13608-May-200913:03x86
Appcmd.exe7.0.6002.22131154,11208-May-200911:11x86
Appcmd.xmlNot Applicable3,65403-Apr-200920:43Not Applicable
Applicationhost.configNot Applicable7,99003-Apr-200920:43Not Applicable
Appobj.dll7.0.6002.22131311,80808-May-200913:03x86
Aspnetca.exe7.0.6002.22131182,78408-May-200911:12x86
Aspnet_schema.xmlNot Applicable38,78603-Apr-200920:44Not Applicable
Fx_schema.xmlNot Applicable27,08208-May-200908:12Not Applicable
Iismig.dll7.0.6002.22131209,40808-May-200911:11x86
Iisreg.dll7.0.6002.2213189,08808-May-200911:11x86
Iisres.dll7.0.6002.22131193,02408-May-200911:11x86
Iisreset.exe7.0.6002.2213114,84808-May-200911:11x86
Iisrstap.dll7.0.6002.221318,19208-May-200911:11x86
Iisrstas.exe7.0.6002.2213131,23208-May-200911:11x86
Iisrtl.dll7.0.6002.22131153,60008-May-200913:04x86
Iissetup.exe7.0.6002.22131228,86408-May-200911:12x86
Iissyspr.dll7.0.6002.2213159,39208-May-200911:11x86
Iisutil.dll7.0.6002.22131202,75208-May-200913:04x86
Iis_schema.xmlNot Applicable78,22703-Apr-200920:45Not Applicable
Nativerd.dll7.0.6002.22131331,77608-May-200913:05x86
Redirection.configNot Applicable49003-Apr-200920:45Not Applicable
Rsca.dll7.0.6002.2213126,62408-May-200913:06x86
Rscaext.dll6.0.6002.2213138,91208-May-200911:11x86
Rscaext.xmlNot Applicable8,36303-Apr-200920:45Not Applicable
W3ctrlps.dll7.0.6002.221319,21608-May-200911:11x86
Wamregps.dll7.0.6002.2213110,75208-May-200911:11x86
For all supported x64-based versions of Windows Server 2008 and of Windows Vista
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Admwprox.dll7.0.6001.2242854,78408-May-200913:24x64
Ahadmin.dll7.0.6001.2242861,44008-May-200913:24x64
Appcmd.exe7.0.6001.22428191,48808-May-200911:56x64
Appcmd.xmlNot Applicable3,65401-Apr-200915:56Not Applicable
Applicationhost.configNot Applicable7,98901-Apr-200915:56Not Applicable
Appobj.dll7.0.6001.22428379,39208-May-200913:24x64
Aspnetca.exe7.0.6001.22428218,62408-May-200911:56x64
Aspnet_schema.xmlNot Applicable38,78601-Apr-200915:56Not Applicable
Fx_schema.xmlNot Applicable26,94308-May-200908:11Not Applicable
Iismig.dll7.0.6001.22428242,68808-May-200913:29x64
Iisreg.dll7.0.6001.22428111,61608-May-200913:26x64
Iisres.dll7.0.6001.22428193,02408-May-200911:56x64
Iisreset.exe7.0.6001.2242816,89608-May-200911:55x64
Iisrstap.dll7.0.6001.2242811,26408-May-200913:26x64
Iisrstas.exe7.0.6001.2242834,81608-May-200911:55x64
Iisrtl.dll7.0.6001.22428192,51208-May-200913:26x64
Iissetup.exe7.0.6001.22428280,06408-May-200911:56x64
Iissyspr.dll7.0.6001.2242866,56008-May-200913:26x64
Iisutil.dll7.0.6001.22428275,45608-May-200913:26x64
Iis_schema.xmlNot Applicable77,83001-Apr-200915:56Not Applicable
Nativerd.dll7.0.6001.22428416,25608-May-200913:28x64
Redirection.configNot Applicable49001-Apr-200915:56Not Applicable
Rsca.dll7.0.6001.2242831,23208-May-200913:29x64
Rscaext.dll6.0.6001.2242844,03208-May-200913:29x64
Rscaext.xmlNot Applicable8,36301-Apr-200915:56Not Applicable
W3ctrlps.dll7.0.6001.2242813,82408-May-200913:30x64
Wamregps.dll7.0.6001.2242815,87208-May-200913:30x64
Admwprox.dll7.0.6002.2213154,78408-May-200912:54x64
Ahadmin.dll7.0.6002.2213161,44008-May-200912:54x64
Appcmd.exe7.0.6002.22131191,48808-May-200911:26x64
Appcmd.xmlNot Applicable3,65403-Apr-200920:38Not Applicable
Applicationhost.configNot Applicable7,99003-Apr-200920:38Not Applicable
Appobj.dll7.0.6002.22131379,39208-May-200912:54x64
Aspnetca.exe7.0.6002.22131218,62408-May-200911:27x64
Aspnet_schema.xmlNot Applicable38,78603-Apr-200920:39Not Applicable
Fx_schema.xmlNot Applicable27,08208-May-200908:12Not Applicable
Iismig.dll7.0.6002.22131242,68808-May-200912:57x64
Iisreg.dll7.0.6002.22131111,61608-May-200912:55x64
Iisres.dll7.0.6002.22131193,02408-May-200911:26x64
Iisreset.exe7.0.6002.2213116,89608-May-200911:26x64
Iisrstap.dll7.0.6002.2213111,26408-May-200912:55x64
Iisrstas.exe7.0.6002.2213134,81608-May-200911:26x64
Iisrtl.dll7.0.6002.22131192,51208-May-200912:55x64
Iissetup.exe7.0.6002.22131280,06408-May-200911:27x64
Iissyspr.dll7.0.6002.2213166,56008-May-200912:55x64
Iisutil.dll7.0.6002.22131276,99208-May-200912:55x64
Iis_schema.xmlNot Applicable78,22703-Apr-200920:39Not Applicable
Nativerd.dll7.0.6002.22131415,23208-May-200912:56x64
Redirection.configNot Applicable49003-Apr-200920:39Not Applicable
Rsca.dll7.0.6002.2213131,23208-May-200912:57x64
Rscaext.dll6.0.6002.2213144,03208-May-200912:57x64
Rscaext.xmlNot Applicable8,36303-Apr-200920:39Not Applicable
W3ctrlps.dll7.0.6002.2213113,82408-May-200912:58x64
Wamregps.dll7.0.6002.2213115,87208-May-200912:58x64
For all supported Itanium-based versions of Windows Server 2008 and of Windows Vista
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Admwprox.dll7.0.6001.22428119,80808-May-200914:17IA-64
Ahadmin.dll7.0.6001.2242882,43208-May-200914:17IA-64
Appcmd.exe7.0.6001.22428404,99208-May-200912:54IA-64
Appcmd.xmlNot Applicable3,65401-Apr-200915:56Not Applicable
Applicationhost.configNot Applicable7,98901-Apr-200915:56Not Applicable
Appobj.dll7.0.6001.22428727,55208-May-200914:18IA-64
Aspnetca.exe7.0.6001.22428432,12808-May-200912:55IA-64
Aspnet_schema.xmlNot Applicable38,78601-Apr-200915:57Not Applicable
Fx_schema.xmlNot Applicable26,94308-May-200909:25Not Applicable
Iismig.dll7.0.6001.22428452,09608-May-200914:24IA-64
Iisreg.dll7.0.6001.22428143,87208-May-200914:21IA-64
Iisres.dll7.0.6001.22428193,02408-May-200912:54IA-64
Iisreset.exe7.0.6001.2242834,81608-May-200912:53IA-64
Iisrstap.dll7.0.6001.2242818,94408-May-200914:21IA-64
Iisrstas.exe7.0.6001.2242878,33608-May-200912:54IA-64
Iisrtl.dll7.0.6001.22428393,21608-May-200914:21IA-64
Iissetup.exe7.0.6001.22428543,23208-May-200912:55IA-64
Iissyspr.dll7.0.6001.22428134,65608-May-200914:21IA-64
Iisutil.dll7.0.6001.22428513,02408-May-200914:21IA-64
Iis_schema.xmlNot Applicable77,83001-Apr-200915:57Not Applicable
Nativerd.dll7.0.6001.22428902,65608-May-200914:22IA-64
Redirection.configNot Applicable49001-Apr-200915:57Not Applicable
Rsca.dll7.0.6001.2242874,24008-May-200914:24IA-64
Rscaext.dll6.0.6001.22428111,61608-May-200914:24IA-64
Rscaext.xmlNot Applicable8,36301-Apr-200915:57Not Applicable
W3ctrlps.dll7.0.6001.2242822,52808-May-200914:25IA-64
Wamregps.dll7.0.6001.2242828,16008-May-200914:25IA-64
Admwprox.dll7.0.6002.22131119,80808-May-200912:44IA-64
Ahadmin.dll7.0.6002.2213182,43208-May-200912:44IA-64
Appcmd.exe7.0.6002.22131404,99208-May-200911:23IA-64
Appcmd.xmlNot Applicable3,65403-Apr-200920:40Not Applicable
Applicationhost.configNot Applicable7,99003-Apr-200920:40Not Applicable
Appobj.dll7.0.6002.22131727,55208-May-200912:44IA-64
Aspnetca.exe7.0.6002.22131432,12808-May-200911:24IA-64
Aspnet_schema.xmlNot Applicable38,78603-Apr-200920:40Not Applicable
Fx_schema.xmlNot Applicable27,08208-May-200908:12Not Applicable
Iismig.dll7.0.6002.22131452,09608-May-200912:49IA-64
Iisreg.dll7.0.6002.22131143,87208-May-200912:46IA-64
Iisres.dll7.0.6002.22131193,02408-May-200911:23IA-64
Iisreset.exe7.0.6002.2213134,81608-May-200911:23IA-64
Iisrstap.dll7.0.6002.2213118,94408-May-200912:46IA-64
Iisrstas.exe7.0.6002.2213178,33608-May-200911:23IA-64
Iisrtl.dll7.0.6002.22131393,21608-May-200912:46IA-64
Iissetup.exe7.0.6002.22131543,23208-May-200911:24IA-64
Iissyspr.dll7.0.6002.22131134,65608-May-200912:46IA-64
Iisutil.dll7.0.6002.22131513,02408-May-200912:46IA-64
Iis_schema.xmlNot Applicable78,22703-Apr-200920:40Not Applicable
Nativerd.dll7.0.6002.22131903,16808-May-200912:48IA-64
Redirection.configNot Applicable49003-Apr-200920:40Not Applicable
Rsca.dll7.0.6002.2213174,24008-May-200912:49IA-64
Rscaext.dll6.0.6002.22131111,61608-May-200912:49IA-64
Rscaext.xmlNot Applicable8,36303-Apr-200920:40Not Applicable
W3ctrlps.dll7.0.6002.2213122,52808-May-200912:50IA-64
Wamregps.dll7.0.6002.2213128,16008-May-200912:50IA-64

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
To resolve this issue, this hotfix adds the support for the following new configuration element metadata:
  • isEmptyElementVisible is a write-only metadata that lets the user to change whether an element is persisted in the configuration. It can only be set for non-collection element that has no child elements and no attributes.
  • isPresent is a read-only metadata that represents whether the element was set in the configuration.
For more information about MWA for IIS 7.0, visit the following Microsoft Web site:
http://learn.iis.net/page.aspx/173/overview-of-mwa--mwm-for-iis-7/
For more information about how to access configuration sections by using MWA, visit the following Microsoft Web site:
http://learn.iis.net/page.aspx/166/accessing-configuration-sections-using-microsoftwebadministration-mwa/
For more information about the Microsoft.Web.Administration namespace, visit the following Microsoft Web site:
http://msdn.microsoft.com/en-us/library/microsoft.web.administration.aspx
For more information about IIS 7.0 configuration, visit the following Microsoft Web site:
http://learn.iis.net/page.aspx/128/iis-7-configuration-reference/

Properties

Article ID: 970773 - Last Review: July 16, 2009 - Revision: 1.0
APPLIES TO
  • Microsoft Internet Information Services 7.0
Keywords: 
kbautohotfix kbsurveynew kbhotfixserver kbqfe kbexpertiseadvanced KB970773

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com