Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS 2010 Error when creating or opening projects

I just installed new copy of visual studio 2010 and when i tried to open old project i got error message.

enter image description here

So i just tried to create new project, and received the same message.

No valid exports were found that match the contraint '((exportDefinition.ContractName == "Microsoft.VisualStudio.Text.ITextBufferFactoryService") AndAlso (exportDefinition.Metadata.ContainsKey("ExportTypeIdentiy") AndAlso "Microsoft.VisualStudio.Text.ITextBufferFactoryService".Equals(exportDefinition.Metadata.get_Item("ExportTypeIdentity"))))', invalid exports may have been rejected.

I already tried to remove and re-install it. After that did not work i tried to use repair option.

I'm running Windows 7 64bit OS.


1 Answers

I had a similar error with Visual Studio 2012 that seemed to have been caused when I enabled ClearType text on a different monitor. I found a solution in another MSDN thread:

Remove the file: Microsoft.VisualStudio.Default.cache

in the folder: in C:\Users...\AppData\Local\Microsoft\VisualStudio\11.0\ComponentModelCache

After starting VS2012 re-generates the file and everything works.

like image 186
Christian Shay Avatar answered Jan 28 '26 23:01

Christian Shay



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!