.net - VS2010 定期崩溃并出现 System.ArgumentException : Value does not fall within the expected range

标签 .net visual-studio-2010 visual-studio

我在 Activity Monitor Log.xml 文件中收到以下错误

System.ArgumentException: Value does not fall within the expected range. at Microsoft.VisualStudio.Web.CSS.ICSSLineTokenizer.TokenizeLine(ICSSTokenFactory factory, Int32 lLine) at Microsoft.VisualStudio.Web.CSS.Implementation.CSSColorizer.Microsoft.VisualStudio.Text.Classification.IClassifier.GetClassificationSpans(SnapshotSpan trackingSpan) at Microsoft.VisualStudio.Text.Classification.Implementation.ClassifierTagger.d_0.MoveNext() at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.d_16.MoveNext()

在源列中,显示“编辑器或编辑器扩展”

这种情况不会每次都会发生,但平均每天会发生一次。如果我重新启动它,一切都很好。这种情况发生在代码的任何部分,无论是 css 文件还是 cs 或 aspx。有人可以帮忙吗?

随后,我在事件监视器 xml 文件中收到以下 Resharper 错误。

Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. C:\Program Files\JetBrains\ReSharper\v7.0\Bin\JetBrains.Platform.ReSharper.VisualStudio.v11.dll

并且

Could not load file or assembly 'Microsoft.VisualStudio.Shell.Interop.11.0, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. C:\Program Files\JetBrains\ReSharper\v7.0\Bin\JetBrains.Platform.ReSharper.VisualStudio.v11.dll

伙计们,我不是一个专家程序员,只是一个初学者,而且也是 StackOverFlow 的新手。因此,如果我在错误的地方或网站上发帖,请原谅。如果有人也能好心地说明一下..\谢谢。

最佳答案

ArgumentException 不是你的错;而是你的错。这表明 Visual Studio 或您安装的某些扩展中存在错误。确保您已安装 Service Pack 和所有更新。

JetBrains 问题意味着您安装了支持 Visual Studio 2012 的 ReSharper 版本。只要 Resharper 为您工作,我会大胆猜测,如果您运行的是较旧的版本,则在启动过程中出现此类异常是正常的VS 的版本高于 Resharper 支持的最高版本。

关于.net - VS2010 定期崩溃并出现 System.ArgumentException : Value does not fall within the expected range,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14497965/

相关文章:

c# - 我需要在处理完控件后删除控件吗?

visual-studio-2010 - Visual Studio 2010 调试 - 进程无法访问文件......因为它正被另一个进程使用

visual-studio-2010 - 无法启动程序 'http://localhost/Default.aspx' 。 VS2010

vb.net - 不区分大小写

.net - 什么是编译为 native Windows 代码的优秀轻量级编程语言?

javascript - 取消先前的 Jquery 表单在 Key Up 上提交

.net - 自定义解决方案配置未显示在 Visual Studio 2010 中

javascript - 如何在 Visual Studio 2005 中调试 JavaScript?

c++ - C1083 WIN32 没有那个文件或目录

c# - 在 mailkit imap 中仅显示附件链接