Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error in Visual Studio 2013: "No exports were found that match the constraint"

Tags:

I don't know what happen with my Visual Studio 2013 Update 2.

When I opened my project, it displayed this message:

No exports were found that match the constraint: ContractName

Microsoft.Internal.VisualStudio.PlatformUI.ISolutionAttachedCollection.Service

RequiredTypeIdentity
Microsoft.Internal.VisualStudio.PlatformUI.ISolutionAttachedCollection.Service

I am really confused. I've tried this solution, but it didn't solve my problem...

like image 653
Martino Avatar asked May 24 '14 17:05

Martino


2 Answers

I had the same problem, so I shut down Visual Studio 2013, renamed the folder

C:\Users\{username}\AppData\Local\Microsoft\VisualStudio\12.0\ComponentModelCache

to ComponentModelCache-old, and restarted Visual Studio which rebuilt the ComponentModelCache folder and all is back to normal.

like image 161
c0d3p03t Avatar answered Sep 20 '22 12:09

c0d3p03t


It's not possible to help you without knowing:

  • the complete list of installed extensions,
  • the exact Visual Studio 2013 version,
  • the exact Windows version,
  • a brief reproduction script.

The most important clue you can get about the root cause, can be seen in Visual Studio Activity Log. I suggest starting Visual Studio with activity logging enabled (devenv.exe /log), reproducing the error and checking the log.

  • How to: Use the Activity Log,
  • Troubleshooting Extensions with the Activity Log.
like image 21
bahrep Avatar answered Sep 17 '22 12:09

bahrep