Error in Microsoft Visual Studio 2012: Export not found, which corresponds to the restriction

When I opened my project in VS2012, I received an error message

Export not found, which corresponds to the restriction:

Contractname
Microsoft.VisualStudio.Utilities.IContentTypeRegistryService
RequiredTypeIdentity
Microsoft.VisualStudio.Utilities.IContentTypeRegistryService

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

Why did this happen, can anyone suggest a solution?

+58
visual-studio-2012
Oct 07 '13 at 5:14
source share
3 answers

I solved this problem by clearing the cache model of the Visual Studio component. 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

+153
09 Oct '13 at 8:09
source share

I have fixed this with an update:

http://www.microsoft.com/en-in/download/confirmation.aspx?id=36020#

I am on Windows 8.1 and Visual Studio 2012.

+14
Oct 18 '13 at 7:05
source share

I ran into a similar problem and found this solution like magic. The steps go here:

  • Delete the ComponentModelCache folder from the folder below:

C: \ Users \\ AppData \ Local \ Microsoft \ VisualStudio \ 11.0

  • Be sure to replace your real username on your computer.

  • After uninstalling, recreate the folder with the same name "ComponentModelCache".

  • In case it gives any permissions, delete the remaining files / folders one by one.

An error while trying to create a project in a visual studio no longer exists.

+13
Mar 26 '14 at 15:24
source share



All Articles