【发布时间】:2017-10-06 15:39:51
【问题描述】:
我在 Windows 10 环境中使用 Visual Studio 2015。 Visual Studio 经常崩溃。该解决方案可以正常打开,但在输入几个字母后,我收到一条消息,提示发生错误并且必须关闭 Visual Studio。我在网上搜索并找到了如何在诊断模式下运行 VS(devenv /log)。我试过了,在 ActivityLog.xml 中看到了几个错误。我不知道这些是什么意思,我在网上找不到任何关于它们的信息。我已经更新了所有 Visual Studio 扩展,但这并没有帮助。我尝试修复VS,但这也无济于事。谁能解释我如何诊断和解决问题?
这是日志中的错误消息:
<entry>
<record>161</record>
<time>2017/05/08 14:53:38.815</time>
<type>Error</type>
<source>Microsoft.VisualStudio.CommonIDE.ExtensibilityHosting.VsShellComponentModelHost</source>
<description>Still unable to load MEF component DLL: Could not load file or assembly 'Microsoft.VisualStudio.Workspaces.Contracts, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.</description>
<path>C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\RV0KRPV2.PBV\TMLanguage.dll</path>
</entry>
<entry>
<record>162</record>
<time>2017/05/08 14:53:38.822</time>
<type>Error</type>
<source>Microsoft.VisualStudio.CommonIDE.ExtensibilityHosting.VsShellComponentModelHost</source>
<description>Still unable to load MEF component DLL: Could not load file or assembly 'Microsoft.VisualStudio.WindowsAzure.CommonAzureTools.Contracts.1.7, Version=1.7.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.</description>
<path>C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\2re3mhbz.g1s\Microsoft.VisualStudio.ApplicationInsights.dll</path>
</entry>
<entry>
<record>163</record>
<time>2017/05/08 14:53:38.830</time>
<type>Error</type>
<source>Microsoft.VisualStudio.CommonIDE.ExtensibilityHosting.VsShellComponentModelHost</source>
<description>Still unable to load MEF component DLL: Could not load file or assembly 'Microsoft.VisualStudio.ApacheCordovaTools.Definitions.14.0, Version=14.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.</description>
<path>C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\22KH2U4Y.XLJ\Microsoft.VisualStudio.Azure.ConnectedServices.MobileServices.dll</path>
</entry>
【问题讨论】:
-
create a dump file 并通过运行 !analyze -v 分析 Windbg.exe 中的 dmp
-
感谢您的回复。恐怕我不知道如何创建转储文件(您的链接没有提供说明),也不知道 Windbg.exe 是什么或如何使用它。不幸的是,我的老板不会让我花时间学习所有这些。我认为我得到的日志已经很好地表明了问题所在,我只是不知道如何解决它。我希望得到特定于 Visual Studio 2015 的答案,例如“转到某个链接并下载 x。这将重新安装您丢失的文件。”
-
apply my .reg file。 Windbg.exe 是 Windows 10 SDK 的一部分
-
您的问题有什么更新吗?
-
没有。只有那个项目仍然有这个问题。我正在记事本中编写代码,然后将其复制并粘贴到 Visual Studio 中。
标签: visual-studio visual-studio-2015