安装 Visual Studio 2015 RTM 后未加载包 [英] Packages not loading after installing Visual Studio 2015 RTM

查看:23
本文介绍了安装 Visual Studio 2015 RTM 后未加载包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题

我安装了 Visual Studio 2015 RC 并在其上安装了 Visual Studio 2015 RTM.我在互联网上找不到任何说你不能这样做的东西.我不知道这是否与问题有关.

不幸的是,当我在重新启动后第一次启动 Visual Studio 2015 RTM 时,它弹出消息框:

<块引用>

'Microsoft.VisualStudio.Editor.Implementation.EditorPackage' 包未正确加载"

还有:

  • XamarinShellPackage
  • TestWindowPackage
  • NuGetPackage
  • ErrorListPackage

我该如何解决这个错误?

日志

它说要查看ActivityLog.xml.我找不到 Microsoft.VisualStudio.Editor.Implementation.EditorPackage.

但是对于 XamarinShellPackage 它说:

<记录>339</记录><time>2015/07/21 13:01:54.011</time><type>错误</type><source>VisualStudio</source><description>SetSite 程序包 [XamarinShellPackage] 失败</description><guid>{2D510815-1C4E-4210-BD82-3D9D2C56C140}</guid><hr>80070057 - E_INVALIDARG</hr><errorinfo>'providers' 不能包含 null(在 Visual Basic 中为 Nothing)元素.参数名称:提供者</errorinfo></条目><进入><记录>340</记录><time>2015/07/21 13:01:54.013</time><type>错误</type><source>VisualStudio</source><description>结束包加载 [XamarinShellPackage]</description><guid>{2D510815-1C4E-4210-BD82-3D9D2C56C140}</guid><hr>80070057 - E_INVALIDARG</hr><errorinfo>'providers' 不能包含 null(在 Visual Basic 中为 Nothing)元素.参数名称:提供者</errorinfo></条目>

对于TestWindowPackage:

<记录>394</记录><time>2015/07/21 13:02:02.751</time><type>错误</type><source>TestWindowPackage</source><description>TestWindowPackage.Initialize 失败,异常:&#x000D;&#x000A;&#x000D;&#x000A;System.NullReferenceException:未将对象引用设置为对象的实例.&#x000D;&#x000A;在 Microsoft.VisualStudio.TestWindow.VsHost.TestWindowPackage.Initialize()&#x000D;&#x000A;&#x000D;&#x000A;PackageContainer loaded: False &#x000D;&#x000A;</description></条目><进入><记录>395</记录><time>2015/07/21 13:02:02.752</time><type>错误</type><source>VisualStudio</source><description>SetSite 对包 [TestWindowPackage] 的设置失败</description><guid>{BFC24BF4-B994-4757-BCDC-1D5D2768BF29}</guid><hr>80004003 - E_POINTER</hr><errorinfo>未将对象引用设置为对象的实例.</errorinfo></条目>

对于NuGetPackage:

 <记录>405</记录><time>2015/07/21 13:02:04.096</time><type>错误</type><source>VisualStudio</source><description>SetSite 对包 [NuGetPackage] 的设置失败</description><guid>{5FCC8577-4FEB-4D04-AD72-D6C629B083CC}</guid><hr>80004003 - E_POINTER</hr><errorinfo>未将对象引用设置为对象的实例.</errorinfo></条目><进入><记录>406</记录><time>2015/07/21 13:02:04.096</time><type>错误</type><source>VisualStudio</source><description>结束包加载[NuGetPackage]</description><guid>{5FCC8577-4FEB-4D04-AD72-D6C629B083CC}</guid><hr>80004003 - E_POINTER</hr><errorinfo>未将对象引用设置为对象的实例.</errorinfo></条目>

对于 ErrorListPackage 它说:

<记录>409</记录><time>2015/07/21 13:02:04.624</time><类型>信息</类型><source>VisualStudio</source><description>开始包加载[ErrorListPackage]</description><guid>{4A9B7E50-AA16-11D0-A8C5-00A0C921A4D2}</guid></条目><进入><记录>410</记录><time>2015/07/21 13:02:04.629</time><type>错误</type><source>VisualStudio</source><description>SetSite 对包 [ErrorListPackage] 的设置失败</description><guid>{4A9B7E50-AA16-11D0-A8C5-00A0C921A4D2}</guid><hr>80004003 - E_POINTER</hr><errorinfo>未将对象引用设置为对象的实例.</errorinfo></条目>

到目前为止我尝试了什么

  • 在工具 --> 扩展和更新中,我尝试卸载并重新安装扩展.但是当我单击菜单项扩展和更新"时,出现未设置对象引用"异常??所以我不能尝试这个选项.
    • 我已卸载 Visual Studio 2015 并重新安装.没有效果.
    • 我已经完成了
    • 完全删除了 Program Files 文件夹中的 Visual Studio Secondary Installer 文件夹
    • 基本上从程序文件中删除了与 Visual Studio 14.0 相关的任何内容.在程序和功能"中卸载后留下的任何内容.
    • 卸载 Microsoft Visual C++ 可再发行组件 (x86) - 14.0.xxx 也
    • 也卸载了我的 Xamarin 东西
    • 希望我没有忘记任何东西,但底线是完全摆脱与 Visual Studio 2015 相关的任何东西.
    • 重新安装 Visual Studio 2015 RTM,它现在应该可以工作了.我必须再次安装一些第三方的东西,但至少它可以工作!

    解决方案

    我的机器上安装了 Visual Studio 2012、2013 和 2015.安装 Visual Studio 2013 Update 5 后,我开始在 VS 2013 中收到包未正确加载"错误.

    我所做的就是按照以下步骤操作:

    1. 关闭所有 Visual Studio 实例
    2. 删除此文件夹中的所有内容C:Users\%username%AppDataLocalMicrosoftVisualStudio12.0ComponentModelCache
    3. 重启 Visual Studio

    虽然我没有在 Visual Studio 2015 中尝试过这个,但我相信这也应该可以解决问题.要为 Visual Studio 2015 执行此操作,应将 12.0 更改为 14.0.

    更新

    与其删除文件夹中的所有内容(如上面步骤 2 所建议的那样),重命名文件夹并允许 Visual Studio 创建一个新文件夹要安全得多.有时,您可能需要从旧文件夹中复制一些内容.

    The problem

    I had Visual Studio 2015 RC installed and installed Visual Studio 2015 RTM over it. I couldn't find anything on the Internet that said you couldn't do this. I don't know if this is relevant to the problem.

    Unfortunately, when I started up Visual Studio 2015 RTM for the first time after restarting it popped up message boxes with:

    "The 'Microsoft.VisualStudio.Editor.Implementation.EditorPackage' package did not load correctly"

    Also:

    • XamarinShellPackage
    • TestWindowPackage
    • NuGetPackage
    • ErrorListPackage

    How can I resolve this error?

    Logs

    It said to look in the ActivityLog.xml. I couldn't find Microsoft.VisualStudio.Editor.Implementation.EditorPackage.

    But for XamarinShellPackage it said:

    <entry>
        <record>339</record>
        <time>2015/07/21 13:01:54.011</time>
        <type>Error</type>
        <source>VisualStudio</source>
        <description>SetSite failed for package [XamarinShellPackage]</description>
        <guid>{2D510815-1C4E-4210-BD82-3D9D2C56C140}</guid>
        <hr>80070057 - E_INVALIDARG</hr>
        <errorinfo>'providers' cannot contain a null (Nothing in Visual Basic) element.
    Parameter name: providers</errorinfo>
      </entry>
      <entry>
        <record>340</record>
        <time>2015/07/21 13:01:54.013</time>
        <type>Error</type>
        <source>VisualStudio</source>
        <description>End package load [XamarinShellPackage]</description>
        <guid>{2D510815-1C4E-4210-BD82-3D9D2C56C140}</guid>
        <hr>80070057 - E_INVALIDARG</hr>
        <errorinfo>'providers' cannot contain a null (Nothing in Visual Basic) element.
    Parameter name: providers</errorinfo>
      </entry>
    

    For TestWindowPackage:

    <entry>
       <record>394</record>
       <time>2015/07/21 13:02:02.751</time>
       <type>Error</type>
       <source>TestWindowPackage</source>
       <description>TestWindowPackage.Initialize failed with exception:
    &#x000D;&#x000A;&#x000D;&#x000A;System.NullReferenceException:
    Object reference not set to an instance of an object.&#x000D;&#x000A;
    at Microsoft.VisualStudio.TestWindow.VsHost.TestWindowPackage.Initialize()
    &#x000D;&#x000A;&#x000D;&#x000A;PackageContainer loaded: False &#x000D;&#x000A;</description>
    </entry>
    <entry>
       <record>395</record>
       <time>2015/07/21 13:02:02.752</time>
       <type>Error</type>
       <source>VisualStudio</source>
       <description>SetSite failed for package [TestWindowPackage]</description>
       <guid>{BFC24BF4-B994-4757-BCDC-1D5D2768BF29}</guid>
       <hr>80004003 - E_POINTER</hr>
       <errorinfo>Object reference not set to an instance of an object.</errorinfo>
    </entry>
    

    For NuGetPackage:

     <entry>
        <record>405</record>
        <time>2015/07/21 13:02:04.096</time>
        <type>Error</type>
        <source>VisualStudio</source>
        <description>SetSite failed for package [NuGetPackage]</description>
        <guid>{5FCC8577-4FEB-4D04-AD72-D6C629B083CC}</guid>
        <hr>80004003 - E_POINTER</hr>
        <errorinfo>Object reference not set to an instance of an object.</errorinfo>
      </entry>
      <entry>
        <record>406</record>
        <time>2015/07/21 13:02:04.096</time>
        <type>Error</type>
        <source>VisualStudio</source>
        <description>End package load [NuGetPackage]</description>
        <guid>{5FCC8577-4FEB-4D04-AD72-D6C629B083CC}</guid>
        <hr>80004003 - E_POINTER</hr>
        <errorinfo>Object reference not set to an instance of an object.</errorinfo>
      </entry>
    

    For ErrorListPackage it said:

    <entry>
        <record>409</record>
        <time>2015/07/21 13:02:04.624</time>
        <type>Information</type>
        <source>VisualStudio</source>
        <description>Begin package load [ErrorListPackage]</description>
        <guid>{4A9B7E50-AA16-11D0-A8C5-00A0C921A4D2}</guid>
      </entry>
      <entry>
        <record>410</record>
        <time>2015/07/21 13:02:04.629</time>
        <type>Error</type>
        <source>VisualStudio</source>
        <description>SetSite failed for package [ErrorListPackage]</description>
        <guid>{4A9B7E50-AA16-11D0-A8C5-00A0C921A4D2}</guid>
        <hr>80004003 - E_POINTER</hr>
        <errorinfo>Object reference not set to an instance of an object.</errorinfo>
      </entry>
    

    What I have tried so far

    So... Any suggestions out there?

    Updates to the question

    First update

    I just tried to load a project and... Something is very wrong. It can't load a bunch of packages like: "CSharpPackage, IntegrationPackage, MigrationPackage, FileIndicatorPackage, etc..." and the Solution Explorer is completely blank! What is going on?

    Second update

    This is how my Programs and Features look like:

    Third update

    I have uninstalled and removed as much as I dared.

    • Removed everything in AppDataRoamingMicrosoftVisualStudio14.0
    • Removed everything in AppDataLocalVisualStudio14.0
    • Uninstalled Visual Studio 2015 via Programs and Features (above screenshot)
    • Removed the Visual Studio Secondary Installer folder in the Program Files folder altogether
    • Removed everything that has to do with Visual Studio 14.0 from Program Files

    I don't want to mess up my Visual Studio 2013 installation. Visual Studio 2015 still can't load the packages above!

    So if anyone has more information as to which programs exactly can be uninstalled from the above screenshot, I would be very happy.

    Fourth update

    Steps to be taken (updated from update 3)

    • Removed everything in AppDataRoamingMicrosoftVisualStudio14.0
    • Removed everything in AppDataLocalVisualStudio14.0
    • Remove everything concerning Visual Studio 14.0 from ProgramData
    • Uninstalled Visual Studio 2015 via Programs and Features (above screenshot)
    • Did everything this article says: https://support.microsoft.com/nl-nl/kb/3016536
    • Removed the Visual Studio Secondary Installer folder in the Program Files folder altogether
    • Removed anything that has to do with Visual Studio 14.0 from Program Files basically. Anything left over from uninstalling in Programs And Features.
    • Uninstall Microsoft Visual C++ redistributable (x86) - 14.0.xxx also
    • Uninstalled my Xamarin stuff also
    • Hope I didn't forget anything, but bottom line is to totally get rid of anything Visual Studio 2015 related.
    • Reinstall Visual Studio 2015 RTM and it should work now. I have to install some third-party stuff again, but at least it works!

    解决方案

    I have Visual Studio 2012, 2013 and 2015 all installed on my machine. After installing Visual Studio 2013 Update 5, I started getting the "package did not load correctly" error in VS 2013.

    All I did to get it working was to follow this step:

    1. Close all instances of Visual Studio
    2. Delete everything in this folder C:Users\%username%AppDataLocalMicrosoftVisualStudio12.0ComponentModelCache
    3. Restart Visual Studio

    Though I have not tried this for Visual Studio 2015, I believe this should solve the problem too. To do this for Visual Studio 2015, 12.0 should be changed to 14.0.

    UPDATE

    Instead of deleting everything in the folder (as suggested by step 2 above), it is much more safer to rename the folder and allow Visual Studio create a new one. Sometimes, you might have to copy somethings over from the old folder.

    这篇关于安装 Visual Studio 2015 RTM 后未加载包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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