Installation of ASP.NET MVC 3 or ASP.NET Web Pages fails with a fatal error

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

SYMPTOMS

A fatal error message similar to the following occurs when you attempt to install ASP.NET MVC 3 or ASP.NET Web Pages:



Installation failed with error code (0x80070643)


To determine the exact failure that occurred, click the log file link on the last screen of the installation process for ASP.NET Web Pages or ASP.NET MVC 3. Locate the error code that made the installation fail. This error in turn points to the MSI log, which is located in the same folder. The MSI log will report an error similar to the following:




Error 1721. There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor. Action: WebConfigCA_Remove, location: C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\WebConfig\WebConfigCA.exe, command: -u




CAUSE

This error condition can be caused by the following circumstances:
  • You have a pre-release version of ASP.NET Web Pages or ASP.NET MVC 3 installed and you installed Visual Studio 2010 SP1. When you install the released version of ASP.NET Web Pages or ASP.NET MVC 3, you receive the error listed above when the installation fails.
  • You have sections in the root Web.config file marked with allowOverride="false". (The root configuration file is in the %system%\Microsoft.NET\Framework\<version>\Config folder).
  • Another process has locked the root Web.config file. This prevents the installer from writing to it.
  • The root Web.config is read-only.

RESOLUTION

The solution depends on which of the possible error conditions occurred. If you have a pre-release version of ASP.NET Web Pages or ASP.NET MVC installed, try the following:
  1. Remove the trailing backslash from the following registry keys:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ASP.NET\4.0.30319.0\Path
    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\ASP.NET\4.0.30319.0\Path
  2. Uninstall the old version of Microsoft ASP.NET Web Pages.
  3. Add the trailing backslash back to the registry keys.
  4. Install ASP.NET Web Pages or ASP.NET MVC 3 again.
Otherwise, try these steps:
  1. Change any sections in the root Web.config file that have allowOverride="false" to allowOverride="true".
  2. Determine what process is locking the root Web.config file and end that process, or restart the computer you are trying to install to.
  3. Make sure that the root Web.config file is not set to read-only.
  4. After making these changes, install ASP.NET Web Pages or ASP.NET MVC 3 again.
Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.

Properties

Article ID: 2531566 - Last Review: April 18, 2011 - Revision: 6.0
APPLIES TO
  • Microsoft ASP.NET MVC 3
Keywords: 
KB2531566

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