0

我正在使用 Visual Studio 10.0.40219.1 SP1 Rel,我最近才开始遇到问题。当我打开一个 .aspx 页面以更改任何标记时,我一开始输入就会弹出一条错误消息,上面写着

“Visual Studio 遇到异常。这可能是由扩展引起的。”

然后它告诉我,我可以使用 /log 触发器查看有关错误的更多详细信息,然后查看 ActivityLog.xml。在异常之后,当我开始打字时,我的智能感知不起作用

System.ArgumentOutOfRangeException:索引超出范围。必须是非负数且小于集合的大小。参数名称: System.ThrowHelper.ThrowArgumentOutOfRangeException() 处的索引 System.Collections.Generic.List 1.get_Item(Int32 index) at System.Collections.ObjectModel.ReadOnlyCollection1.System.Collections.Generic.IList.get_Item(Int32 index) 处 Artem.VisualStudio.Outlining.OutliningTagger.CalculateChange(TextContentChangedEventArgs e) 处Artem.VisualStudio.Outlining.OutliningTagger.HandleBufferChanged(Object sender, TextContentChangedEventArgs e) at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.RaiseEvent[TArgs](Object sender, EventHandler`1 eventHandlers, TArgs args)

System.Runtime.InteropServices.SEHException (0x80004005):外部组件已引发异常。在 Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) 在 Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) 在 Microsoft.VisualStudio.Editor.Implementation.CommandFilterWrapper.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) 在 Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) 在 Microsoft.VisualStudio.Editor.Implementation.CommandFilterWrapper.Exec(Guid & pguidCmdGroup, UInt32 nCmdID,0(KeyProcessor p,TextCompositionEventArgs args)在 Microsoft.VisualStudio.Text.Editor.Implementation.KeyProcessorDispatcher.<>c _DisplayClass1e`1.b__1a() 在 Microsoft.VisualStudio.Text.Utilities.GuardedOperations.CallExtensionPoint(对象错误源,操作调用)

在“源”下(在 ActivityLog.xml 中),它们都说“编辑器或编辑器扩展”。

我已尝试禁用所有已安装的扩展程序,但没有任何区别。我在Win7 64位机器上。

我看过一些与修复注册表项有关的帖子,但我的注册表项看起来已经完全正确。我很茫然,我希望有人遇到过类似的问题。先感谢您!

4

1 回答 1

0

导致问题的扩展在您的错误消息中是正确的:

Artem.VisualStudio.Outlining.OutliningTagger

http://jsoutlining.codeplex.com/workitem/29965相关?

于 2012-08-30T17:48:30.377 回答