14

I just upgraded to Azure SDK Tools 2.5 in Visual Studio 2012 and when I try to publish via the GUI to Azure I am getting the following error during the final CSPack step.

ERROR MESSAGE:

The "CSPack" task failed unexpectedly. System.Runtime.Serialization.SerializationException: Type 'System.Xml.Linq.XElement' in Assembly 'System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' is not marked as serializable.

I understand what the error is offering, but cannot figure out what is causing this to fail...as previous version of the SDK Tools had no issues with this reference.

Any help is greatly appreciated

4

5 回答 5

3

虽然我不知道根本原因。升级到 Azure SDK 2.5 后,我找到了一种解决方法:

将 Azure SDK 2.4 版本 cspack.exe、ServiceDescription.dll 和 Microsoft.ServiceHosting.Tools.MsBuildTasks.dll 复制到 Azure SDK 2.5 cspack.exe 位置并替换。这将使用 cspack 2.4 与 Azure SDK 2.5 运行时打包。

验证 Azure 中的包部署没有问题。

于 2015-01-30T06:02:23.970 回答
3

每个开发团队,这是 2.5 版工具中的一个错误。它将在 2.5.1 版本中修复,目前预计在本月底(3 月)之前可用。

于 2015-03-16T20:36:49.510 回答
1

This bug is now fixed in the latest Azure SDK 2.5.1 release.

于 2015-03-25T18:18:57.143 回答
0

从 2.4 更新到 Azure 2.5 后,在加载具有多个 Azure“webrole”项目的 VS 2013 解决方案时,我也遇到了这个错误。我也无法通过 Server Tools 看到当前部署在 Azure 上的任何内容。我决定重新启动我的开发机器,加载解决方案时错误消失了,我再次能够浏览 Azure 服务器。我还能够毫无问题地重建整个解决方案,但我还没有尝试从 VS 2013 部署到 Azure。

于 2014-11-22T00:11:41.567 回答
0

有同样的问题。决定回滚 SDK 2.5 并返回 2.4。这不是唯一的问题。没有什么能像往常一样工作,服务器资源管理器 Azure 工具也不能正常工作。我已断开连接,然后我必须删除我的帐户并再次添加它才能查看存储帐户。但这并没有解决问题或对存储对象(例如表)做任何工作。

不需要卸载 Azure SDK 2.5。只需还原 VS 项目的升级。

于 2014-11-14T22:51:46.977 回答