启动Visual Studio时出错 [英] Error starting Visual Studio

查看:137
本文介绍了启动Visual Studio时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

应用程序( devenv / build )以消息结束:  Package'Async Query Service Package'无法加载。只需
devenv 即可刷新Visual Studio徽标并退出。


相关(修剪)日志条目:

<?xml version =" 1.0"编码= QUOT; UTF-16"?> 
<?xml-stylesheet type =" text / xsl" HREF =" ActivityLog.xsl"?>
< activity>
< entry>
< record> 26< / record>
< time> 2018/01/17 17:39:19.535< / time>
< type>错误< / type>
< source> VisualStudio< / source>对于包[Task Scheduler Package]来说,
< description> CreateInstance失败。来源:&,Microsoft.VisualStudio.Platform.AppDomainManager&说明:外部组件抛出异常。&#x000D;& #x000A; System.Runtime.InteropServices.SEHException(0x80004005):外部组件抛出异常。&#x000D;&#x000A;在Microsoft.VisualStudio.Platform.VsAppDomainManager.OnStart(String sRegRoot)&#x000D;&#x000A;在System.AppDomainManager.RegisterWithHost(IntPtr appDomainManager)&#x000D;&#x000A;在System.AppDomainManager.RegisterWithHost()&#x000D;&#x000A;在System.AppDomain.CreateAppDomainManager()< / description>
< guid> {00CD9DDA-7350-457C-A240-71BD667FC4DE}< / guid>
< hr> 80004005 - E_FAIL< / hr>
< errorinfo>< / errorinfo>
< / entry>
< entry>
< record> 28< / record>
< time> 2018/01/17 17:39:19.535< / time>
< type>信息< / type>
< source> VisualStudio< / source>
< description>开始加载包[异步查询服务包]< / description>
< guid> {DD7B74B5-C1F9-411A-B22E-5E711592BC6B}< / guid>
< / entry>
< entry>
< record> 29< / record>
< time> 2018/01/17 17:39:19.535< / time>
< type>错误< / type>
< source> VisualStudio< / source>
< description>包[异步查询服务包]的CreateInstance失败(null)< / description>
< guid> {DD7B74B5-C1F9-411A-B22E-5E711592BC6B}< / guid>
< hr> 80004005 - E_FAIL< / hr>
< errorinfo>< / errorinfo>
< / entry>
< / activity>



解决方案

嗨b1m,


欢迎来到MSDN论坛。


什么是你的VS版本?如果你直接打开VS它可以启动吗?


请参阅错误消息,请尝试以下内容:


  1. 关闭所有VS实例并清理该文件夹下的所有文件夹和文件:%LocalAppData%\ Mesrosoft \ VisualApr \\ _xxxx \然后重新启动VS以再次检查它。
  2. 打开CMD并导航到VS安装文件夹,如C:\Program Files(x86)\ Microsoft Visual Studio 14.0\Common7 \IDE并运行命令:devenv / safemode将其作为安全模式运行,然后检查
    如果已安装的扩展程序导致此问题。

同时,请看看

此类似问题
并检查此文件'  Microsoft.VisualStudio.Ole.Interop
'是否存在于预期文件夹下,如果没有,请从其他文件中复制一个位置。



最好的问候,


萨拉


The application (devenv /build) ends with a message: Package 'Async Query Service Package' failed to load. Just devenv will flash the Visual Studio logo and exit.

Related (trimmed) log entry:

<?xml version="1.0" encoding="utf-16"?>
<?xml-stylesheet type="text/xsl" href="ActivityLog.xsl"?>
<activity>
  <entry>
    <record>26</record>
    <time>2018/01/17 17:39:19.535</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>CreateInstance failed for package [Task Scheduler Package]Source: &apos;Microsoft.VisualStudio.Platform.AppDomainManager&apos; Description: External component has thrown an exception.&#x000D;&#x000A;System.Runtime.InteropServices.SEHException (0x80004005): External component has thrown an exception.&#x000D;&#x000A;   at Microsoft.VisualStudio.Platform.VsAppDomainManager.OnStart(String sRegRoot)&#x000D;&#x000A;   at System.AppDomainManager.RegisterWithHost(IntPtr appDomainManager)&#x000D;&#x000A;   at System.AppDomainManager.RegisterWithHost()&#x000D;&#x000A;   at System.AppDomain.CreateAppDomainManager()</description>
    <guid>{00CD9DDA-7350-457C-A240-71BD667FC4DE}</guid>
    <hr>80004005 - E_FAIL</hr>
    <errorinfo></errorinfo>
  </entry>
  <entry>
    <record>28</record>
    <time>2018/01/17 17:39:19.535</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Begin package load [Async Query Service Package]</description>
    <guid>{DD7B74B5-C1F9-411A-B22E-5E711592BC6B}</guid>
  </entry>
  <entry>
    <record>29</record>
    <time>2018/01/17 17:39:19.535</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>CreateInstance failed for package [Async Query Service Package](null)</description>
    <guid>{DD7B74B5-C1F9-411A-B22E-5E711592BC6B}</guid>
    <hr>80004005 - E_FAIL</hr>
    <errorinfo></errorinfo>
  </entry>
</activity>


解决方案

Hi b1m,

Welcome to the MSDN forum.

What’s your VS version? If you directly open the VS and it can start or not?

Refer to the error message, please have a try with the following:

  1. Close all VS instances and clean up all folders and files under the folder: %LocalAppData%\Microsoft\VisualStudio\xxxx\ and restart the VS to check it again.
  2. Open CMD and navigate to the VS installation folder like C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE and run the command: devenv /safemode to run it as safe mode, then check if the installed extensions caused this issue.

Meanwhile, please have a look at this similar issue and check if this file ‘ Microsoft.VisualStudio.Ole.Interop’ is existing under the expected folder or not, if not, please copy one from other locations.

Best regards,

Sara


这篇关于启动Visual Studio时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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