【问题标题】:Azure Related Error - VS 2013 Professional - The 'CctProjectPackage' package did not load correctlyAzure 相关错误 - VS 2013 Professional - 'CctProjectPackage' 包未正确加载
【发布时间】:2016-12-23 13:21:33
【问题描述】:

我正在运行 Visual Studio Professional 2013 以使用 Azure 2.4 创建 Azure 云网站。

这几个月来一直运行良好,没有任何问题,然后突然在我的家用计算机上,我收到上述错误,并且我所有现有解决方案中的所有 Azure 云服务项目都被列为与我的版本不兼容软件。如果我尝试创建一个新的 Azure 云服务项目,它就会彻底失败。

<entry>
<record>641</record>
<time>2015/02/14 09:56:30.100</time>
<type>Warning</type>
<source>UserConnection</source>
<description>Newer version of resource during SetAttribute: VSS011053: A different version of resource &apos;VisualStudio.12;Environment.General&apos; exists on the server. Given version &apos;0&apos; while existing version is &apos;2373&apos;. (ActivityId: a432dc90-386f-4215-85d3-ad0f89dd8bd0)</description>
</entry>
<entry>
<record>642</record>
<time>2015/02/14 09:56:30.991</time>
<type>Warning</type>
<source>UserConnection</source>
<description>Newer version of resource during SetAttribute: VSS011053: A different version of resource &apos;VisualStudio.12;Environment.Startup&apos; exists on the server. Given version &apos;0&apos; while existing version is &apos;2374&apos;. (ActivityId: 27589d22-4ba2-416c-8950-f6998dc49a3c)</description>
</entry>
<entry>
<record>643</record>
<time>2015/02/14 09:56:34.756</time>
<type>Information</type>
<source>VisualStudio</source>
<description>Entering function CVsPackageInfo::HrInstantiatePackage</description>
<guid>{E269B994-EF71-4CE0-8BCD-581C217372E8}</guid>
</entry>
<entry>
<record>644</record>
<time>2015/02/14 09:56:34.756</time>
<type>Warning</type>
<source>VisualStudio</source>
<description>Unexpected system error mode before loading package [Microsoft.VisualStudio.Editor.Implementation.EditorPackage]</description>
<guid>{E269B994-EF71-4CE0-8BCD-581C217372E8}</guid>
</entry>
<entry>
<record>645</record>
<time>2015/02/14 09:56:34.756</time>
<type>Information</type>
<source>VisualStudio</source>
<description>Begin package load [Microsoft.VisualStudio.Editor.Implementation.EditorPackage]</description>
<guid>{E269B994-EF71-4CE0-8BCD-581C217372E8}</guid>
</entry>
<entry>
<record>646</record>
<time>2015/02/14 09:56:34.802</time>
<type>Information</type>
<source>VisualStudio</source>
<description>End package load [Microsoft.VisualStudio.Editor.Implementation.EditorPackage]</description>
<guid>{E269B994-EF71-4CE0-8BCD-581C217372E8}</guid>
</entry>
<entry>
<record>647</record>
<time>2015/02/14 10:56:16.398</time>
<type>Information</type>
<source>ClientRights</source>
<description>Read client rights token for IdeUser User: &apos;john@doe.com&apos; (ActvityId: &apos;b5c38855-50e7-40c8-804c-f164a010b1a7&apos;) from &apos;C:\Users\ismithers\AppData\Local\Microsoft\VisualStudio\12.0\Licenses\1_kdatcfot.crtok&apos;</description>
</entry>
<entry>
<record>648</record>
<time>2015/02/14 11:32:03.632</time>
<type>Information</type>
<source>VisualStudio</source>
<description>Entering function CVsPackageInfo::HrInstantiatePackage</description>
<guid>{3CF1DF15-44F2-4467-AB0E-1F90BA69A3E0}</guid>
</entry>
<entry>
<record>649</record>
<time>2015/02/14 11:32:03.632</time>
<type>Information</type>
<source>VisualStudio</source>
<description>Begin package load [CctProjectPackage]</description>
<guid>{3CF1DF15-44F2-4467-AB0E-1F90BA69A3E0}</guid>
</entry>
<entry>
<record>650</record>
<time>2015/02/14 11:32:03.632</time>
<type>Error</type>
<source>VisualStudio</source>
<description>CreateInstance failed for package [CctProjectPackage]</description>
<guid>{3CF1DF15-44F2-4467-AB0E-1F90BA69A3E0}</guid>
<hr>80131604</hr>
<errorinfo>Exception has been thrown by the target of an invocation.</errorinfo>
</entry>
<entry>
<record>651</record>
<time>2015/02/14 11:32:03.632</time>
<type>Error</type>
<source>VisualStudio</source>
<description>End package load [CctProjectPackage]</description>
<guid>{3CF1DF15-44F2-4467-AB0E-1F90BA69A3E0}</guid>
<hr>80004005 - E_FAIL</hr>
<errorinfo>Exception has been thrown by the target of an invocation.</errorinfo>
</entry>

Visual Studio -> 帮助菜单 -> 关于 - 显示此错误窗口:

“'CctProjectPackage' 包未正确加载。”

文件 -> 新建 -> 项目 -> Azure 云服务 -> 确定 -> 确定 -> 显示带有消息的窗口:

“'C:\etc\etc...\AzureProject.ccproj' 无法打开,因为此版本的应用程序不支持其项目类型 (.ccproj)。”

我试过了:

A full uninstall of Visual Studio 2013 Professional. Then reinstalled.
Removed all optional packages and reinstalled.
Repaired Visual Studio 2013 Professional and Azure Tools 2.4.
Tried various command line commands such as reinstalling the templates, manually registering the AzureDiagnostics.dll and resetting Visual Studio 2013 Professional.
Cleaned registry.
Installed to a new directory.

让我感到惊讶的是,当我安装了不同版本的 Visual Studio 2013(例如 Web Express 版本)时。每个人都工作过。但是,不在我的 Visual Studio 2013 Professional 中。

热切期待您的回复和帮助,非常感谢。

【问题讨论】:

  • 要添加一些额外的 cmets,我尝试了 /Resetsettings、/ResetSkipPkgs 和 /Safemode,所有这些都没有解决问题 - 这些是 MSDN 代表建议的。
  • 我实际上确实尝试了 Jon Crowell 回答中的步骤,但它并没有为我解决。话虽如此,我会建议其他人作为第一步。

标签: azure visual-studio-2013 packages


【解决方案1】:

Windows 10 更新后我遇到了同样的问题。 我可以通过以下步骤修复它:

  1. 关闭 Visual Studio
  2. 打开 Users\AppData\Local\Microsoft\VisualStudio\12.0\ 文件夹
  3. 重命名 ComponentModelCache 文件夹
  4. 重新启动 Visual Studio。

希望对您有所帮助... :)

【讨论】:

  • @ncu 您可以按照这些步骤操作吗,如果它解决了您的问题,我会将其标记为已接受的答案。
  • 接受这个作为答案,因为它远优于“重新安装”。谢谢@hugocabral :)
  • 所以在 Windows 10 更新之后,这再次发生在我身上。我很快回到这篇文章并尝试了@hugocabral 发布的步骤,并且可以验证它们对我有用。很想知道是什么促成了这个解决方案,因为我觉得它很深奥。
【解决方案2】:

所以我通过重新安装 Windows 8 解决了这个问题。

这是解决此问题的合法解决方案,就像通过购买新车来修理损坏的空调一样。但最后继续排查问题的时间太长了。

【讨论】:

  • 同样的问题,更新到 Azure SDK 2.6 后开始出现。现在 Azure 节点在服务器资源管理器中不可用,并且在打开 VS About 时我也会收到相同的错误消息。几周前刚刚重新安装了我的电脑,我不想再遇到麻烦了。我已经重新安装了 SDK 和 VS。 MS Azure 团队中是否有人知道合适的解决方案?
  • @ncu 我确实尝试在 Azure 论坛和 Visual Studio 论坛上发帖,但在两者都告诉我在另一个上发帖后,我就把毛巾扔了。我很想听听如果您取得任何进展,实际问题最终会是什么。
  • 我认为“cctProjectPackage”警告的根本原因是分别安装 Azure SDK 和 VS 更新 4。我终于在我的 PC 上进行了映像还原,安装了 Azure SDK 2.5,然后安装了 VS 更新 4,警告消息又回来了。我卸载了 Azure SDK 并从 MSDN 下载并安装了 VS_with_update4 并且消息消失了。但是我仍然没有在服务器资源管理器中看到 Azure 下的存储节点,这是更新 SDK 的第一个原因。我也安装了 VS2015,也许这也是问题的一部分,但我不能确定。
  • @ncu 我也有错误对话框不再出现的地方,但是在检查 ActivityLog.xml 文件时,我可以看到包仍然无法加载。此外,如果我检查了 Visual Studio -> 帮助 -> 关于屏幕,我看不到那里列出的 Azure 工具。
  • 不要执行此步骤,因为它是不必要的,而是按照上面@hugocabral 的回答中的步骤操作。
【解决方案3】:

这也可以通过修复 Windows Azure Tools for Visual Studio 的安装来解决。

转到控制面板 > 程序和功能 (appwiz.cpl)

从已安装程序列表中选择 Windows Azure Tools for Visual Studio,单击更改和修复。完成后,重新启动(如果出现提示),问题应该就消失了。

【讨论】:

    猜你喜欢
    • 2017-01-04
    • 2023-03-25
    • 2016-07-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-02-04
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多