Visual Studio 2017 15.6.2中的System.AggregateException

时间:2018-03-19 17:23:19

标签: visual-studio resharper

我有一个干净的Visual Studio 2017和ReSharper安装,但决定将其升级到15.6.2 for Visual Studio和2017.3.3 for ReSharper。不幸的是现在我继续在Visual Studio上发生崩溃,弹出说:visual studio an exception has been encountered. this may be caused by an extension

所以我禁用了ReSharper但它继续运行,错误日志如下:

<entry>
  <record>1912</record>
  <time>2018/03/19 17:15:01.680</time>
  <type>Error</type>
  <source>Editor or Editor Extension</source>
  <description>System.AggregateException: One or more errors occurred. ---&gt; System.NullReferenceException: Object reference not set to an instance of an object.&#x000D;&#x000A;   at Microsoft.CodeAnalysis.Classification.AbstractClassificationService.&lt;AddSyntacticClassificationsAsync&gt;d__3.MoveNext()&#x000D;&#x000A;   --- End of inner exception stack trace ---&#x000D;&#x000A;   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)&#x000D;&#x000A;   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)&#x000D;&#x000A;   at Microsoft.CodeAnalysis.Editor.Implementation.Classification.SyntacticClassificationTaggerProvider.TagComputer.AddClassifiedSpansForCurrentTree[TClassificationService](IClassificationDelegationService`1 delegationService, TClassificationService classificationService, SnapshotSpan span, Document document, List`1 classifiedSpans)&#x000D;&#x000A;   at Microsoft.CodeAnalysis.Editor.Implementation.Classification.SyntacticClassificationTaggerProvider.TagComputer.AddClassifiedSpans[TClassificationService](IClassificationDelegationService`1 delegationService, TClassificationService classificationService, SnapshotSpan span, List`1 classifiedSpans)&#x000D;&#x000A;   at Microsoft.CodeAnalysis.Editor.Implementation.Classification.SyntacticClassificationTaggerProvider.TagComputer.GetTags[TClassificationService](NormalizedSnapshotSpanCollection spans, HostLanguageServices languageServices, IClassificationDelegationService`1 delegationService)&#x000D;&#x000A;   at Microsoft.CodeAnalysis.Editor.Implementation.Classification.SyntacticClassificationTaggerProvider.TagComputer.GetTags(NormalizedSnapshotSpanCollection spans)&#x000D;&#x000A;   at Microsoft.CodeAnalysis.Editor.Implementation.Classification.SyntacticClassificationTaggerProvider.Tagger.GetTags(NormalizedSnapshotSpanCollection spans)&#x000D;&#x000A;   at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.&lt;GetTagsForBuffer&gt;d__39.MoveNext()&#x000D;&#x000A;---&gt; (Inner Exception #0) System.NullReferenceException: Object reference not set to an instance of an object.&#x000D;&#x000A;   at Microsoft.CodeAnalysis.Classification.AbstractClassificationService.&lt;AddSyntacticClassificationsAsync&gt;d__3.MoveNext()&lt;---&#x000D;&#x000A;</description>
</entry>

有没有人在Visual Studio 2017中遇到过这种行为,你是如何解决的?

信息:错误仍然发生在15.6.3

1 个答案:

答案 0 :(得分:0)

不幸的是,我有点绝望 - 耐心 - 所以我对Visual Studio进行了全面修复,这似乎使它工作正常。然后我不得不重新安装ReSharper

很抱歉,我们希望花更多时间找到合适的解决方案......