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 'C:\\ProgramData\\Microsoft\\VisualStudio\\11.0\\1033\\devenv.CTM' 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.
#EnterpriseDeveloper
#MFDS
