No exports were found that match the constraint.

I have faced a strange issue while working on visual studio. Whatever file I what to open with the visual studio it gives me error: 
 
No exports were found that match the constraint:ContractName
Microsoft.VisualStudio.Utilities.IContentTypeRegistryService
RequiredTypeIdentity
Microsoft.VisualStudio.Utilities.IContentTypeRegistryService

Solution: After hours of googling and trying different solutions. I have solved my issue by removing all the files from following visual studio ComponentModelCache folder:

 

C:\Users\{YourUserName}\AppData\Local\Microsoft\VisualStudio\11.0\ComponentModelCache
 
About Us | Terms of Use | Privacy Policy | Disclaimer | Contact Us Copyright © 2012-2024 CodingFusion
50+ C# Programs for beginners to practice