代码之家  ›  专栏  ›  技术社区  ›  bulltorious

当我在代码编辑器中选择文本时,Visual Studio崩溃

  •  1
  • bulltorious  · 技术社区  · 15 年前

    我刚安装了Vs2010,没有出现任何错误,但是每当我在代码编辑器中尝试通过ctrl-a、shift-arrow或单击并拖动程序崩溃来选择文本时。

    以下是调试信息:

    事件类型:clr20r3 p1:devenv.exe p2:10.0.30319.1 p3:4ba1fab3 P4:ui自动提供程序p5:4.0.0.0 p6:4ba1f837 p7:3
    P8:0 P9:System.dllnotFoundException(P8:0 P9:System.dllnotFoundException)异常

    我在谷歌上找到的唯一一个提到它的链接就是这个链接,我刚刚发布了:

    http://social.msdn.microsoft.com/Forums/en/vseditor/thread/7e8983f8-48c5-4c6c-acef-c6c128a3baa6

    3 回复  |  直到 15 年前
        1
  •  2
  •   bulltorious    15 年前

    根据尼克的一些建议,当它出错时,我在Visual Studio中对它进行了调试。它给了我“无法加载dll”uiautomationcore.dll。找不到指定的模块。“我在谷歌上搜索到它,然后到达

    http://connect.microsoft.com/VisualStudio/feedback/details/564071/vs2010-unhandled-net-exception-after-clicking-in-any-xaml-document

    告诉我安装

    显然,安装最新版本的UI自动化API解决了这个问题。 http://www.microsoft.com/downloads/details.aspx?FamilyId=cd55456d-9703-42a0-b982-8a8a89ca0aa3&displaylang=en

    解决了这个问题。)

        2
  •  1
  •   Hans Passant    15 年前

    .NET 4.0安装不顺利。缺少的dll应该存在于c:\windows\microsoft.net\assembly\gac_msil\uiautomationprovider\v4.0_4.0.0.0_uu31bf3856ad364e35中。

    下一步是重新安装.NET 4.0。但是一定要担心你的机器的稳定性,dll不只是消失或者没有安装。

        3
  •  0
  •   JaredPar    15 年前

    这当然不是Visual Studio的默认行为。崩溃的最可能原因是第三方插件。尝试禁用任何插件并重复场景。

    推荐文章