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

Exception 为什么VS2013在关闭文件时有时会抛出异常0x80070057?,exception,visual-studio-2013,Exception,Visual Studio 2013,有时,并非所有时间,在最新的Win7 x64计算机上的Visual Studio 2013 w/Update 1在关闭一个文件或多个文件执行“除此之外全部关闭”时会引发异常。此时会显示一个对话框,提示您参考“C:\Users\\AppData\Roaming\Microsoft\VisualStudio\12.0”中的“ActivityLog.xml”文件,该文件中每个正在关闭的文件都有以下条目之一。我正在使用最新版本的DevExpress控件 我怎样才能解决这个问题?我并没有发现任何类似的问题

有时,并非所有时间,在最新的Win7 x64计算机上的Visual Studio 2013 w/Update 1在关闭一个文件或多个文件执行“除此之外全部关闭”时会引发异常。此时会显示一个对话框,提示您参考“C:\Users\\AppData\Roaming\Microsoft\VisualStudio\12.0”中的“ActivityLog.xml”文件,该文件中每个正在关闭的文件都有以下条目之一。我正在使用最新版本的DevExpress控件

我怎样才能解决这个问题?我并没有发现任何类似的问题,虽然这篇文章有点类似,但当我打开一个解决方案时,这并没有发生

到目前为止,它似乎主要发生在打开多个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>

858
2014/02/17 20:22:45.177
错误
编辑器或编辑器扩展
System.ArgumentException:参数不正确。(HRESULT的例外情况:0x80070057(E_INVALIDARG))和x000D
;在System.Runtime.InteropServices.Marshal.ThroweExceptionForhr内部(Int32 errorCode,IntPtr errorInfo)和#x000D
;在System.Runtime.InteropServices.Marshal.ThroweExceptionForHR(Int32错误代码)和#x000D
;在Microsoft.VisualStudio.NativeMethods.ThrowOnFailure(Int32 hr,Int32[]预期HRFailure)和#x000D
;在Microsoft.VisualStudio.Shell.RunningDocumentTable.FindDocument(字符串名字对象、IVsHierarchy和层次结构、UInt32和itemid、UInt32和docCookie)和
;在Microsoft.VisualStudio.CodeSense.Editor.Roslyn.CodeElementTaggerProvider.CreateTagger(ITextView textView)和x000D
;在Microsoft.VisualStudio.CodeSense.Editor.TaggerProvider`1.CreateTagger[T](ITextView textView,ITextBuffer buffer)和#x000D
;位于Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.GatherTaggers(ITextBuffer textBuffer)

这似乎是代码检测引擎中的一个错误。文档关闭后,他们正在从运行文档表中请求文档。我鼓励您在这个问题上提交一个bug(客户bug比我刚提交时得到更多的关注)

要阻止这种情况,您唯一能做的就是禁用代码感知

  • 工具->选项
  • 文本编辑器->所有语言->代码镜头
  • 取消选中“启用代码镜头”

我没有安装我所知道的任何东西的alpha版本,除非您指的是MVC5。(我)也不知道会引起麻烦的事。我没有专门为Roslyn安装我知道的任何东西,直到我查找它时才知道它是什么。Roslyn在Visual Studio 2013中作为代码镜头/感知等功能的支持分析引擎间接发布。这似乎就是这里正在发生的事情为什么人们要投票来结束这一切?之前关于我安装alpha软件的评论怎么了?我认为错误消息中出现的字符串“Roslyn”让人很反感。这让它看起来像是你安装了alpha软件,然后问起了什么问题(这是意料之中的)。大多数人没有意识到Roslyn部分是作为其他VisualStudio功能的实现工件发布的。