Visual studio crashes when type something in the Code Editor
<p>Suddenly my Visual studio 2015 update 3 started crashing when i try to type some code. It was working until friday. Something happened over weekend. I have 5 projects ( 4 Class Libraries &amp; 1 web project) in my solution. VS gets crashed only when i try to type something in the code editor of a <code>Data</code> project which is a class library. I am using EF Code First but i don't think this issue is related to code. This could be related to something else.</p>

<p>I have looked into <code>Activity.log</code> and found that it's due to some corrupt <code>ComponentCache</code>. I cleared <code>ComponentModelCache</code> but still problem persists.</p>

<p>Any suggestion is hightly appreciated.  <code>Activity.log</code> entry is pasted below for your reference. I am sure many of you must have experienced this issue.</p>

<pre><code> &lt;entry&gt;
    &lt;record&gt;633&lt;/record&gt;
    &lt;time&gt;2016/07/04 13:55:53.621&lt;/time&gt;
    &lt;type&gt;Error&lt;/type&gt;
    &lt;source&gt;Editor or Editor Extension&lt;/source&gt;
    &lt;description&gt;Microsoft.VisualStudio.ExtensibilityHosting.InvalidMEFCacheException: The Visual Studio component cache is out of date. Please restart Visual Studio.&amp;#x000D;&amp;#x000A;   at Microsoft.VisualStudio.ExtensibilityHosting.FaultCatchingAssemblyLoader.&amp;lt;LoadAssembly&amp;gt;b__15_0(AssemblyName assemblyNameParam)&amp;#x000D;&amp;#x000A;   at Microsoft.VisualStudio.ExtensibilityHosting.Utilities.SafeGetOrAdd[TKey,TValue](IDictionary`2 dictionary, TKey key, Object lockObj, Func`2 valueFactory)&amp;#x000D;&amp;#x000A;   at Microsoft.VisualStudio.ExtensibilityHosting.FaultCatchingAssemblyLoader.LoadAssembly(AssemblyName assemblyName)&amp;#x000D;&amp;#x000A;   at Microsoft.VisualStudio.Composition.Reflection.ResolverExtensions.Resolve(ConstructorRef constructorRef)&amp;#x000D;&amp;#x000A;   at Microsoft.VisualStudio.Composition.RuntimeComposition.RuntimePart.get_ImportingConstructor()&amp;#x000D;&amp;#x000A;   at Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.RuntimePartLifecycleTracker.CreateValue()&amp;#x000D;&amp;#x000A;   at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.Create()&amp;#x000D;&amp;#x000A;   at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.MoveNext(PartLifecycleState nextState)&amp;#x000D;&amp;#x000A;   at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.MoveToState(PartLifecycleState requiredState)&amp;#x000D;&amp;#x000A;   at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.GetValueReadyToExpose()&amp;#x000D;&amp;#x000A;   at Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.&amp;lt;&amp;gt;c__DisplayClass15_0.&amp;lt;GetExportedValueHelper&amp;gt;b__0()&amp;#x000D;&amp;#x000A;--- End of stack trace from previous location where exception was thrown ---&amp;#x000D;&amp;#x000A;   at Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.&amp;lt;&amp;gt;c__DisplayClass15_0.&amp;lt;GetExportedValueHelper&amp;gt;b__0()&amp;#x000D;&amp;#x000A;   at Microsoft.VisualStudio.Composition.DelegateServices.&amp;lt;&amp;gt;c__DisplayClass2_0`1.&amp;lt;As&amp;gt;b__0()&amp;#x000D;&amp;#x000A;   at System.Lazy`1.CreateValue()&amp;#x000D;&amp;#x000A;--- End of stack trace from previous location where exception was thrown ---&amp;#x000D;&amp;#x000A;   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&amp;#x000D;&amp;#x000A;   at System.Lazy`1.get_Value()&amp;#x000D;&amp;#x000A;   at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.GatherTaggers(ITextBuffer textBuffer)&lt;/description&gt;
  &lt;/entry&gt;
</code></pre>