为什么VS2013在关闭文件时有时会抛出异常0x80070057?

时间:2014-02-17 20:38:42

标签: exception visual-studio-2013

有时,在最新的Win7 x64计算机上,Visual Studio 2013 w / Update 1在关闭文件时会抛出异常,或者多个文件执行“Close All But This”时会抛出异常。将显示一个对话框,引用“C:\ Users \\ AppData \ Roaming \ Microsoft \ VisualStudio \ 12.0”中的“ActivityLog.xml”文件,该文件对于每个正在关闭的文件具有以下条目之一。我正在使用最新版本的DevExpress控件。

我该如何解决这个问题?我没有发现任何类似的问题,虽然帖子Is there something I can/should do about this VS 2013 exception?模糊地相似但是当我打开解决方案时这不会发生。

到目前为止,似乎主要发生在VS2013的多个实例打开时,但我无法随意复制。清除ComponentModelCache没有帮助,因为它在清除缓存后再次发生。该解决方案最初是VS2012解决方案,所有新的DevX,MVC和EF组件已经使用NuGet更新到最新版本。

<entry>
<record>858</record>
<time>2014/02/17 20:22:45.177</time>
<type>Error</type>
<source>Editor or Editor Extension</source>
<description>System.ArgumentException: The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))&#x000D;&#x000A;   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)&#x000D;&#x000A;   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)&#x000D;&#x000A;   at Microsoft.VisualStudio.NativeMethods.ThrowOnFailure(Int32 hr, Int32[] expectedHRFailure)&#x000D;&#x000A;   at Microsoft.VisualStudio.Shell.RunningDocumentTable.FindDocument(String moniker, IVsHierarchy&amp; hierarchy, UInt32&amp; itemid, UInt32&amp; docCookie)&#x000D;&#x000A;   at Microsoft.VisualStudio.CodeSense.Editor.Roslyn.CodeElementTaggerProvider.CreateTagger(ITextView textView)&#x000D;&#x000A;   at Microsoft.VisualStudio.CodeSense.Editor.TaggerProvider`1.CreateTagger[T](ITextView textView, ITextBuffer buffer)&#x000D;&#x000A;   at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.GatherTaggers(ITextBuffer textBuffer)</description>

1 个答案:

答案 0 :(得分:1)

这似乎是Code Sense引擎中的一个错误。文档关闭后,他们正在从“运行文档表”中请求文档。我鼓励你在此提出一个错误(客户错误得到的关注比我刚提交时更多)

  

http://connect.microsoft.com/VisualStudio

你唯一能做到的就是禁用Code Sense

  • 工具 - &gt;选项
  • 文字编辑器 - &gt;所有语言 - &gt;代码镜头
  • 取消选中“启用CodeLens”