首页 文章

Visual Studio 2015崩溃

提问于
浏览
71

Visual studio that won't be repaired...
每次我想在vs 2015上编译一个应用程序 - 它崩溃了 . 即使我想编译主函数或者写一些东西,它也会出现一个窗口

Visual Studio 2015已停止工作

它与2013 Express版本相同 . 我有一个线索,为什么它不起作用:当我打开团队资源管理器时,出现错误:

找不到页面'3185ed96-1cbd-4381-a439-636973542e50' .

我尝试了我在互联网上找到的所有东西并相信我 - 没有任何效果 . 我还尝试了一些命令提示符命令:

devenv.exe/ debug  
devenv.exe/ resetsettings  
devenv.exe/ instalvstemplates  
devenv.exe/ resetskippings  
devenv.exe/ resetuserdata  
devenv.exe/ setup  
devenv.exe/ safemode

Debug mode gave me some info about the error:

mscorlib.dll中发生了未处理的“System.InvalidOperationException”类型异常

附加信息:必须安装服务“ Microsoft.Internal.VisualStudio.Shell.Interop.SVsUIThreadInvokerPrivate ”才能使用此功能 . 确保此服务可用 . HRESULT = 0x80004002

构造此帧的内容时遇到异常 . 此信息也记录在“C:\ Users \ admin \ AppData \ Roaming \ Microsoft \ VisualStudio \ 14.0 \ ActivityLog.xml”中 .

Exception details:
System.ArgumentException: Parametr is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
   at Microsoft.VisualStudio.Shell.Package.CreateToolWindow(Type toolWindowType, Int32 id, UInt32 flags)
   at Microsoft.VisualStudio.Shell.Package.CreateToolWindow(Type toolWindowType, Int32 id, ProvideToolWindowAttribute tool)
   at Microsoft.VisualStudio.Shell.Package.FindToolWindow(Type toolWindowType, Int32 id, Boolean create, ProvideToolWindowAttribute tool)
   at Microsoft.VisualStudio.Shell.Package.CreateToolWindow(Guid& toolWindowType, Int32 id)
   at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsToolWindowFactory.CreateToolWindow(Guid& toolWindowType, UInt32 id)
   at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.ConstructContent()

But still nothing I was able to find has worked.

我重新安装VS并修复它 - 仍然没有 . 然后我下载了一些.dll,microsoft visual c redistributable软件包,并使用Ccleaner来清理注册表 . 我认为这是一个非常奇怪的错误;如果你能告诉我一个修复方案吗?

9 回答

  • 0

    您也可以尝试关闭VS,删除 bin 目录,然后再次尝试调试 - 它对我有用 .

  • 2

    取消选中[工具 - >选项 - >环境 - >根据客户端性能自动调整视觉体验]

    取消选中[使用硬件图形加速,如果可用]

    您可以选中[启用富客户端视觉体验]

    我遇到了很多问题,从随机崩溃,崩溃我的英特尔图形显示驱动程序,我关闭它,我没有问题,它实际上运行得更好 . 也许它会对你有用

  • 5

    我正面临着团队探索者的同样问题 . 首先关闭visual studio的所有实例,然后尝试: devenv /resetuserdata

  • 0

    可能修复这些类型错误:

    尝试更新设备驱动程序(英特尔高清显卡)或运行图形驱动程序,如果你有基于开关,反之亦然 .

    主可执行文件位于

    C:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ Common7 \ IDE \ devenv.exe

    此外,如果您在安装exe上遇到这些类型错误,您可以采用相同的方式修复它
    enter image description here

  • 0

    Visual Studio使用WPF:从this链接:"Windows Presentation Foundation (WPF) differs from prior application platforms on Windows in that it uses its own DirectX-based hardware-accelerated rendering pipeline, when available, to draw the contents of any WPF windows. Prior application platforms were typically much less dependent on display driver quality because the bulk of their rendering was done in software rather than hardware."因此,如果您没有最新的显示驱动程序或最新的.NET框架,它可能会与显示驱动程序冲突导致它停止 . 虽然可能还有其他原因 .

    还有一个注册表设置(regedit)可能会有所帮助:您可以通过转到[HKEY_LOCAL_MACHINE-> SYSTEM-> CurrentControlSet-> Control->添加新的DWORD(对于32位系统)或QWORD(对于64位) GraphicsDrivers]并将名称设置为“TdrDelay”,将值设置为“8” . 确保将值的基数设置为十六进制 . TDR-超时检测和恢复 .

    如果上述任何一项不起作用 . 尝试从[工具 - >选项]中禁用Visual Studio中的任何硬件加速渲染功能 . 从您的ActivityLog文件中,似乎异常主要在图形方法中 . 所以,我的猜测是它与图形渲染有关 .

  • 2

    单击工具菜单>导入和导出设置>重置所有设置>下一步>“否,只需重置设置,覆盖所有当前设置”>下一步>完成 .

  • 79

    我遇到了视觉工作室安装的问题,它在开始安装之前就停止了,我只是去控制面板>程序>打开或关闭Windows功能>只需取消选中所有.NETframework版本并重新启动你的机器然后开始安装这就是它如何和我合作

  • 0

    已经有一段时间了,但我从今天开始看到类似的行为 . 每次加载我们的解决方案时,VS2015都会崩溃并重新启动 . Windows事件日志显示“内存不足异常”,但崩溃时超过2GB . 错误模块是KERNELBASE.DLL

    如果这有助于任何人:

    Faulting application name: devenv.exe, version: 14.0.25420.1, time stamp: 0x57685d85
    Faulting module name: KERNELBASE.dll, version: 6.1.7601.23915, time stamp: 0x59b94abb
    

    我怀疑Windows更新,因为没有一个同事有这个问题,不幸的是我是那个总是尽快安装他的更新的书呆子 .

  • 16

    我找到了这篇SOF文章,并尝试了列出的所有内容

    我发现了这个伏都教的新警告 .

    我属于“有史以来最愚蠢的原因”类别 .

    我的临时文件夹“已满” . 所以我做了磁盘清理,删除了FILES . 但是,我的临时文件夹中有大量子文件夹,当它们为空时,文件夹本身导致GetTempFile函数失败 .

    所以,当我跑

    “C:\ blah \ blah \ blah \ IDE \ devenv.exe”/ log

    ActivityLog.xml中的日志条目显示如下:

    System.IO.IOException: The file exists.

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.__Error.WinIOError()
   at System.IO.Path.InternalGetTempFileName(Boolean checkHost)
   at System.Windows.Input.Cursor.LoadFromStream(Stream cursorStream)
   at Microsoft.VisualStudio.Text.Editor.Implementation.LeftSelectionMargin.get_RightArrowCursor()
   at Microsoft.VisualStudio.Text.Editor.Implementation.LeftSelectionMarginProvider.CreateMargin(IWpfTextViewHost textViewHost, IWpfTextViewMargin containerMargin)
   at Microsoft.VisualStudio.Text.Utilities.ContainerMargin.<AddMargins>b__2(IWpfTextViewMarginProvider mp)
   at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.InstantiateExtension[TExtension,TMetadata,TExtensionInstance](Object errorSource, Lazy`2 provider, Func`2 getter)
    

    在该日志条目文本中,不要错过文本“System.IO.Path.InternalGetTempFileName”

    所以有几个地方说“删除你的临时文件”,我做了,但我仍然遇到了同样的问题 . :(

    然后我看了一下temp目录,看到了一些奇怪的东西 . 大量的(空)子文件夹 .

    所以一旦我发现我的临时目录中有一堆子文件夹,我就清理了这些子文件夹 .

    我发现了这个问题:

    How to delete files/subfolders in a specific directory at command prompt in Windows

    所以我使用了这段代码:

    我将此代码放在.bat文件中

    del /q "C:\Users\MYUSERNAME\AppData\Local\Temp\*"
    FOR /D %%p IN ("C:\Users\MYUSERNAME\AppData\Local\Temp\*.*") DO rmdir "%%p" /s /q
    

    现在我的Visual Studio再次正常运行 .

    哇,去吧 .

相关问题