无法加载DiagnosticsHubPackage(VS2015) [英] Unable to load DiagnosticsHubPackage (VS2015)

查看:524
本文介绍了无法加载DiagnosticsHubPackage(VS2015)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于常规崩溃而重新安装Visual Studio 2015之后,我遇到了与此处所述相同的问题:9f392114-0ffb-4ea1-9144-5f6f7fbfca79(不允许在此处插入链接...)

查看ActivityLog.xml会导致以下错误消息:

< entry>
  < record> 511</record>
  < time> 2015/10/29 06:41:52.949</time>
  < type>错误</type>
  < source> VisualStudio</source>
  < description> SetSite程序包[DiagnosticsHubPackage]</description>失败.
  < guid> {22512D50-40BC-4DEA-89B1-21D70BB4218E}</guid>
  < hr> 80070002</hr>
  < errorinfo>无法加载文件或程序集"Microsoft.VisualStudio.ScriptedHost,版本= 14.0.0.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a"或其依赖项之一. </errorinfo>.
</entry>

实际上,我的Visual Studio安装中没有Microsoft.VisualStudio.ScriptedHost程序集,但是在使用Diagnostics Hub时,从其他安装中插入这些缺少的程序集会导致许多脚本错误,

Visual Studio的修复安装也无济于事.顺便说一句,对我公司而言,仅仅重新安装整个机器并不容易...

解决方案

Axel Heer,

感谢您在MSDN论坛中发帖.

请检查以下内容是否有帮助:

1.关闭Visual Studio
2.将目录%localappdata%\ Microsoft \ VisualStudio \ 14.0重命名为备份位置名称(例如14.0backup)
3.启动Visual Studio-这将从头开始重新创建目录,并且应该为您提供一个全新的开始
4.重新安装所需的所有扩展程序并对其进行配置

最好的问候,

李嘉仪


After reinstalling Visual Studio 2015 because of regular crashes I run into the same problem as described here: 9f392114-0ffb-4ea1-9144-5f6f7fbfca79 (not allowed to insert link here...)

Looking at the ActivityLog.xml leads to the following error message:

<entry>
  <record>511</record>
  <time>2015/10/29 06:41:52.949</time>
  <type>Error</type>
  <source>VisualStudio</source>
  <description>SetSite failed for package [DiagnosticsHubPackage]</description>
  <guid>{22512D50-40BC-4DEA-89B1-21D70BB4218E}</guid>
  <hr>80070002</hr>
  <errorinfo>Could not load file or assembly 'Microsoft.VisualStudio.ScriptedHost, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Das System kann die angegebene Datei nicht finden.</errorinfo>
</entry>

Actually, there is no Microsoft.VisualStudio.ScriptedHost assembly within my Visual Studio installation, but inserting these missing assemblies from another installation leads to many script errors while using the Diagnostics Hub, making it just worse.

A repair install of Visual Studio doesn't help either. And just reinstalling my whole machine isn't that easy at my company by the way...

解决方案

Hi Axel Heer,

Thank you for posting in MSDN forum.

Please check the following to see if it helps:

1. Close Visual Studio
2. Rename the directory %localappdata%\Microsoft\VisualStudio\14.0 to a backup location name (e.g. 14.0backup)
3. Start Visual Studio - this will recreate the directory from scratch and should give you a clean start
4. Re-install any extensions you need and configure them

Best Regards,

Jiayi Li


这篇关于无法加载DiagnosticsHubPackage(VS2015)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆