Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error in Microsoft Visual Studio 2012 :No exports were found that match the constraint

When I opened my Project in VS2012 , I got an error

No exports were found that match the constraint:

ContractName
Microsoft.VisualStudio.Utilities.IContentTypeRegistryService
RequiredTypeIdentity
Microsoft.VisualStudio.Utilities.IContentTypeRegistryService

Please correct before proceeding. (You might rename the current web.config and add a new one).

Why did this happen, can someone please suggest a solution?

like image 570
mottukutty Avatar asked Oct 07 '13 05:10

mottukutty


1 Answers

I solved this problem by clearing the Visual Studio Component Model Cache. Just delete or rename this folder:

%AppData%\..\Local\Microsoft\VisualStudio\11.0\ComponentModelCache

Or, for Visual Studio 2013:

%AppData%\..\Local\Microsoft\VisualStudio\12.0\ComponentModelCache

like image 52
viru Avatar answered Sep 21 '22 20:09

viru