“No exports were found that match the constraint” error in Visual Studio

“No exports were found that match the constraint” error in Visual Studio

The Issue:

I tried to open a project under Micro Focus Enterprise Developer for Visual Studio 2012, and received this error:

 “Cobol Editor MF package did not load correctly. Not able to access any component already saved.”

This was seen in the ActivityLog.xml file:

<description>The CTM file is out of date and should be deleted and rebuilt, but the file &apos;C:\ProgramData\Microsoft\VisualStudio\11.0\1033\devenv.CTM&apos; could not be deleted.</description>

I was able to bypass this error by clicking on a box which allowed the error not to appear any more. But next these errors appeared:

"No exports were found that match the constraint:

    ContractName

MicroSoft.VisualStudio.Utilities.]ContentTypeRegistryService

    RequiredTypeIdentity

MicroSoft.VisualStudio.Utilities.]ContentTypeRegistryService"

 

The Resolution:

This is not an error originating from the Micro Focus product. It is a Microsoft error. However the resolution is this:

Clear the Visual Studio Component Model Cache. Delete or rename this folder:

%LocalAppData%\Microsoft\VisualStudio\11.0\ComponentModelCache

or

%LocalAppData%\Microsoft\VPDExpress\11.0\ComponentModelCache

and restart Visual Studio. The issue will have been resolved.

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
1 of 1
Last update:
‎2017-10-17 00:51
Updated by:
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.