FIX: Error message when you try to use IIS 7.0 Manager to edit a web.config file that contains an XML fragment which includes xmlns: "Cannot write configuration file"

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

SYMPTOMS

Consider the following scenario:
  • You publish a Web site application to Internet Information Services (IIS) 7.0 through IIS 7.0 Manager.
  • You add a connection string for the Web site by using the property Connection Strings in IIS Manager.
  • You edit the connection string and then click OK.
In this scenario, IIS Manager throws a "cannot write configuration file" exception.

CAUSE

This issue occurs because the configuration section that you are trying to insert contains an XML fragment which includes xmlns. When you write xmlns back to the .config file, the IIS configuration system misunderstands the configuration section and incorrectly uses the qualified name as the local name.

The exception may occur when you try to edit the applicationhost.config file or the web.config file through IIS 7.0 manager.

RESOLUTION

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 Windows Vista Service Pack 1 or Windows Server 2008 installed to apply this hotfix.

Restart requirement

You must restart the computer after 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 32-bit versions of Windows Server 2008 and of Windows Vista

Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Admwprox.dll7.0.6001.2230451,71207-Nov-200804:29x86
Ahadmin.dll7.0.6001.2230427,13607-Nov-200804:29x86
Appcmd.exe7.0.6001.22304154,11207-Nov-200804:28x86
Appcmd.xmlNot Applicable3,65418-Dec-200721:00Not Applicable
Applicationhost.configNot Applicable7,98918-Dec-200721:00Not Applicable
Appobj.dll7.0.6001.22304311,80807-Nov-200804:29x86
Aspnetca.exe7.0.6001.22304182,78407-Nov-200804:28x86
Aspnet_schema.xmlNot Applicable38,78618-Dec-200721:00Not Applicable
Fx_schema.xmlNot Applicable26,97118-Dec-200721:00Not Applicable
Iismig.dll7.0.6001.22304209,40807-Nov-200804:29x86
Iisreg.dll7.0.6001.2230489,08807-Nov-200804:29x86
Iisres.dll7.0.6001.22304193,02407-Nov-200802:44x86
Iisreset.exe7.0.6001.2230414,84807-Nov-200804:28x86
Iisrstap.dll7.0.6001.223048,19207-Nov-200804:29x86
Iisrstas.exe7.0.6001.2230431,23207-Nov-200804:28x86
Iisrtl.dll7.0.6001.22304153,60007-Nov-200804:29x86
Iissetup.exe7.0.6001.22304228,86407-Nov-200804:28x86
Iissyspr.dll7.0.6001.2230459,39207-Nov-200804:29x86
Iisutil.dll7.0.6001.22304202,75207-Nov-200804:29x86
Iis_schema.xmlNot Applicable77,74709-Sep-200822:22Not Applicable
Nativerd.dll7.0.6001.22304331,26407-Nov-200804:29x86
Redirection.configNot Applicable49018-Dec-200721:00Not Applicable
Rsca.dll7.0.6001.2230426,62407-Nov-200804:29x86
Rscaext.dll6.0.6001.2230438,91207-Nov-200804:29x86
Rscaext.xmlNot Applicable8,36318-Dec-200721:00Not Applicable
W3ctrlps.dll7.0.6001.223049,21607-Nov-200804:29x86
Wamregps.dll7.0.6001.2230410,75207-Nov-200804:29x86

For all supported 64-bit versions of Windows Server 2008 and of Windows Vista

Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Admwprox.dll7.0.6001.2230454,78407-Nov-200806:12x64
Ahadmin.dll7.0.6001.2230461,44007-Nov-200806:12x64
Appcmd.exe7.0.6001.22304191,48807-Nov-200806:10x64
Appcmd.xmlNot Applicable3,65418-Dec-200721:00Not Applicable
Applicationhost.configNot Applicable7,98918-Dec-200721:00Not Applicable
Appobj.dll7.0.6001.22304379,39207-Nov-200806:12x64
Aspnetca.exe7.0.6001.22304218,62407-Nov-200806:10x64
Aspnet_schema.xmlNot Applicable38,78618-Dec-200721:01Not Applicable
Fx_schema.xmlNot Applicable26,97118-Dec-200721:01Not Applicable
Iismig.dll7.0.6001.22304242,68807-Nov-200806:12x64
Iisreg.dll7.0.6001.22304111,61607-Nov-200806:12x64
Iisres.dll7.0.6001.22304193,02407-Nov-200804:21x64
Iisreset.exe7.0.6001.2230416,89607-Nov-200806:11x64
Iisrstap.dll7.0.6001.2230411,26407-Nov-200806:12x64
Iisrstas.exe7.0.6001.2230434,81607-Nov-200806:11x64
Iisrtl.dll7.0.6001.22304192,51207-Nov-200806:12x64
Iissetup.exe7.0.6001.22304280,06407-Nov-200806:11x64
Iissyspr.dll7.0.6001.2230466,56007-Nov-200806:12x64
Iisutil.dll7.0.6001.22304275,45607-Nov-200806:12x64
Iis_schema.xmlNot Applicable77,74709-Sep-200823:02Not Applicable
Nativerd.dll7.0.6001.22304416,76807-Nov-200806:12x64
Redirection.configNot Applicable49018-Dec-200721:01Not Applicable
Rsca.dll7.0.6001.2230431,23207-Nov-200806:12x64
Rscaext.dll6.0.6001.2230444,03207-Nov-200806:12x64
Rscaext.xmlNot Applicable8,36318-Dec-200721:01Not Applicable
W3ctrlps.dll7.0.6001.2230413,82407-Nov-200806:12x64
Wamregps.dll7.0.6001.2230415,87207-Nov-200806:12x64

For all supported Itanium-based versions of Windows Server 2008

Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Admwprox.dll7.0.6001.22304119,80807-Nov-200805:44IA-64
Ahadmin.dll7.0.6001.2230482,43207-Nov-200805:44IA-64
Appcmd.exe7.0.6001.22304404,99207-Nov-200805:42IA-64
Appcmd.xmlNot Applicable3,65418-Dec-200721:00Not Applicable
Applicationhost.configNot Applicable7,98918-Dec-200721:00Not Applicable
Appobj.dll7.0.6001.22304727,55207-Nov-200805:45IA-64
Aspnetca.exe7.0.6001.22304432,12807-Nov-200805:42IA-64
Aspnet_schema.xmlNot Applicable38,78618-Dec-200721:01Not Applicable
Fx_schema.xmlNot Applicable26,97118-Dec-200721:01Not Applicable
Iismig.dll7.0.6001.22304452,09607-Nov-200805:57IA-64
Iisreg.dll7.0.6001.22304143,87207-Nov-200805:51IA-64
Iisres.dll7.0.6001.22304193,02407-Nov-200804:05IA-64
Iisreset.exe7.0.6001.2230434,81607-Nov-200805:43IA-64
Iisrstap.dll7.0.6001.2230418,94407-Nov-200805:51IA-64
Iisrstas.exe7.0.6001.2230478,33607-Nov-200805:43IA-64
Iisrtl.dll7.0.6001.22304393,21607-Nov-200805:51IA-64
Iissetup.exe7.0.6001.22304543,74407-Nov-200805:43IA-64
Iissyspr.dll7.0.6001.22304134,65607-Nov-200805:51IA-64
Iisutil.dll7.0.6001.22304513,02407-Nov-200805:51IA-64
Iis_schema.xmlNot Applicable77,74709-Sep-200823:18Not Applicable
Nativerd.dll7.0.6001.22304899,07207-Nov-200805:55IA-64
Redirection.configNot Applicable49018-Dec-200721:01Not Applicable
Rsca.dll7.0.6001.2230474,24007-Nov-200805:57IA-64
Rscaext.dll6.0.6001.22304111,61607-Nov-200805:57IA-64
Rscaext.xmlNot Applicable8,36318-Dec-200721:01Not Applicable
W3ctrlps.dll7.0.6001.2230422,52807-Nov-200805:58IA-64
Wamregps.dll7.0.6001.2230428,16007-Nov-200805:58IA-64

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

Properties

Article ID: 958645 - Last Review: December 12, 2008 - Revision: 1.0
APPLIES TO
  • Microsoft Internet Information Services 7.0
Keywords: 
kbhotfixserver kbautohotfix kbexpertiseadvanced kbqfe KB958645

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