Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

FIX: "81010002'" warning message when you rebuild a Visual C++ project in Visual Studio 2010


View products that this article applies to.

Symptoms

Consider the following scenario:
  • You create a Microsoft Visual C++ project in Microsoft Visual Studio 2010.
  • You change the Additional Manifest Files option to support Windows 7.

    Note To do this in Visual Studio 2010, follow these steps:
    1. Open the project's Property Pages dialog box, expand the Manifest Tools node in the Configuration Properties pane, and then click Input and Output.
    2. Add the following manifest file to the Additional Manifest Files option in the right-side pane:

      <?xml version="1.0" encoding="UTF-8" standalone="yes"?> 

        <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> 

          <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1"> 

            <application> 

              <!--The ID below indicates application support for Windows 7 --> 

                <supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/> 

            </application> 

          </compatibility>

        </assembly>
  • You try to rebuild the project to merge the manifest file.
In this scenario, you receive the following warning message:
81010002: Unrecognized Element "compatibility" in namespace "urn:schemas-microsoft-com:compatibility.v1"

↑ Back to the top


Cause

This issue occurs because the Mt.exe tool that is available in the Windows software development kit (SDK) does not recognize the compatibility element in the manifest file.

↑ Back to the top


Resolution

Hotfix information

A supported hotfix is now available from Microsoft. However, it is intended to correct only the problem that this article describes. Apply it only to systems that are experiencing this specific problem.

To resolve this problem, contact Microsoft Customer Support Services to obtain the hotfix. For a complete list of Microsoft Customer Support Services telephone numbers and information about support costs, visit the following Microsoft website:Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Prerequisites

To apply this hotfix, you must have Visual Studio 2010 Service Pack 1 (SP1) installed.

Restart requirement

You do not have to restart the computer after you install the hotfix. We recommend that you close all Visual Studio 2010-related components before you install the hotfix.

File information

The global 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.

File nameFile versionFile sizeDateTimePlatform
Mt2.exe6.1.7716.01,092,16028-Mar-201202:42x64
Mt2.exe6.1.7716.0883,77628-Mar-201202:42x86

↑ Back to the top


More Information

For more information about the Mt.exe tool, go to the following MSDN website:For more information about the application manifest, go to the following MSDN website:

↑ Back to the top


Status

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

↑ Back to the top


Keywords: kbqfe, kbhotfixserver, kbfix, kbsurveynew, kbexpertiseadvanced, kbhotfixdev, kb

↑ Back to the top

Article Info
Article ID : 2670561
Revision : 1
Created on : 1/7/2017
Published on : 5/14/2012
Exists online : False
Views : 303