I'm running with VS-2013 Premium with update 3. While debugging the code and when try to step into , I'm getting this error message box: An exception has been encountered. This may be caused by an extension
When entering the log file (the path is mentioned on the message), I'm get this exception:
<entry>
<record>920</record>
<time>2016/11/02 08:21:03.224</time>
<type>Error</type>
<source>Editor or Editor Extension</source>
<description>System.InvalidOperationException: EndBatchUpdate called without BeginBatchUpdate being called

at Microsoft.VisualStudio.Text.Classification.Implementation.EditorFormatMap.EndBatchUpdate()

at Microsoft.VisualStudio.Text.Classification.Implementation.ClassificationFormatMap.EndBatchUpdate()

at Microsoft.VisualStudio.Editor.Implementation.MarkerType.UpdateMarkerFormat(String markerName, IClassificationType classificationType)

at Microsoft.VisualStudio.Editor.Implementation.MarkerType.EnsureLazyStateInitialized()

at Microsoft.VisualStudio.Editor.Implementation.MarkerManager.GetErrorTags(NormalizedSnapshotSpanCollection spans)

at Microsoft.VisualStudio.Editor.Implementation.MarkerManager.ErrorTaggerImplementation.GetTags(NormalizedSnapshotSpanCollection spans)

at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.<GetTagsForBuffer>d__5.MoveNext()
</description>
</entry>
Same entry there more than 4 times. Even I have deleted the component cache model but problem is not resolved:
C:\Users\User name\AppData\Local\Microsoft\VisualStudio\12.0
others error are as below:
<entry>
<record>891</record>
<time>2016/11/02 08:21:02.023</time>
<type>Error</type>
<source>Editor or Editor Extension</source>
<description>System.InvalidOperationException: IWpfTextView.TextViewLines is invalid.

at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.Microsoft.VisualStudio.Text.Editor.IWpfTextView.get_TextViewLines()

at Microsoft.VisualStudio.Text.AdornmentLibrary.TextMarkers.Implementation.TextMarkerVisualManager.OnFormatMappingChanged(Object sender, FormatItemsEventArgs e)
 at System.EventHandler`1.Invoke(Object sender, TEventArgs e)

at Microsoft.VisualStudio.Text.Classification.Implementation.ViewSpecificFormatMap.EditorFormatMapChanged(Object sender, FormatItemsEventArgs e)
 at System.EventHandler`1.Invoke(Object sender, TEventArgs e)

at Microsoft.VisualStudio.Text.Classification.Implementation.EditorFormatMap.SendChangedEvent()

at Microsoft.VisualStudio.Text.Classification.Implementation.EditorFormatMap.SetProperties(String key, ResourceDictionary properties)
 at Microsoft.VisualStudio.Text.Classification.Implementation.ClassificationFormatMap.SetExplicitTextProperties(IClassificationType classificationType, TextFormattingRunProperties properties)
 at Microsoft.VisualStudio.Text.Classification.Implementation.ClassificationFormatMap.AddExplicitTextProperties(IClassificationType classificationType, TextFormattingRunProperties properties, IClassificationType priority)
 at Microsoft.VisualStudio.Editor.Implementation.FontsAndColorsHelper.UpdateLegacyMarkerClassification(IClassificationFormatMap classificationFormatMap, IClassificationType classificationType, ColorableItemInfo[] info)

at Microsoft.VisualStudio.Editor.Implementation.MarkerType.UpdateMarkerFormat(String markerName, IClassificationType classificationType)
 at Microsoft.VisualStudio.Editor.Implementation.MarkerType.EnsureLazyStateInitialized()

at Microsoft.VisualStudio.Editor.Implementation.MarkerManager.<GetClassificationTags>d__15.MoveNext()

at Microsoft.VisualStudio.Editor.Implementation.TextMarkerViewTagger.<GetTags>d__0.MoveNext()

at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.<GetTagsForBuffer>d__5.MoveNext()</description>
</entry>
<entry>
<record>853</record>
<time>2016/11/02 08:19:10.020</time>
<type>Error</type>
<source>Color Theme Service</source>
<description>The color 'Popup' in category 'de7b1121-99a4-4708-aedf-15f40c9b332f' does not exist.
</description>
</entry>
<entry>
<record>878</record>
<time>2016/11/02 08:19:12.567</time>
<type>Error</type>
<source>Extension Manager</source>
<description>Extension will not be loaded because an extension with the same ID 'Microsoft.Windows.DevelopmentKit.Desktop' is already loaded at C:\PROGRAM FILES (X86)\COMMON FILES\MICROSOFT\EXTENSIONMANAGER\EXTENSIONS\MICROSOFT\WINDOWS KITS\8.0\DESKTOP SDK\...</description>
<path>C:\PROGRAM FILES (X86)\COMMON FILES\MICROSOFT\EXTENSIONMANAGER\EXTENSIONS\MICROSOFT\WINDOWS KITS\8.1\DESKTOP SDK\</path>
</entry>
Go to Tools--> Extensions and Update and disable all the addings from here. Restart the visual studio. Problem will resolve. Hope this will help others.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With