Azure 相关错误 - VS 2013 Professional - 'CctProjectPackage' 包未正确加载

Azure Related Error - VS 2013 Professional - The 'CctProjectPackage' package did not load correctly

我是 运行 Visual Studio Professional 2013,使用 Azure 2.4 创建 Azure Cloud 网站。

几个月来一直运行很好,没有问题,然后突然在我的家用机器上出现上述错误,并且列出了我所有现有解决方案中的所有 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.0\Licenses_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 -> 帮助菜单 -> 关于 - 显示此错误 window:

"The 'CctProjectPackage' package did not load correctly."

文件 -> 新建 -> 项目 -> Azure 云服务 -> 确定 -> 确定 -> 显示 window 消息:

"'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 中没有。

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

所以我通过重新安装 Windows 8.

解决了这个问题

这是解决这个问题的合法方法,就像通过购买新车来修理坏掉的空调一样。但最后继续解决这个问题是时间限制。

我在 windows 10 更新后遇到了同样的问题。 我能够按照以下步骤修复它:

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

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

这也可以通过为 Visual Studio.

修复 Windows Azure 工具的安装来解决

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

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