20
votes

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...

3

3 Answers

5
votes

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.

33
votes

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.

-1
votes

If you download Visual Studio 2013 from Microsoft you will find the path C:\Users\{username}\AppData\Local\Microsoft\WDexpress\12.0\ComponentModelCache.

You should remove the file Microsoft.VisualStudio.Default.cache.

Then restart Visual Studio.