Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure 2.5 SDK Upgrade Causes CSPack Fail

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

like image 799
Jason Hawgood Avatar asked Nov 13 '14 14:11

Jason Hawgood


3 Answers

Although I do not know the root cause. I found a workaround after upgrade to Azure SDK 2.5:

Copy the Azure SDK 2.4 version cspack.exe, ServiceDescription.dll & Microsoft.ServiceHosting.Tools.MsBuildTasks.dll to Azure SDK 2.5 cspack.exe location and replace. This would using cspack 2.4 to pack with Azure SDK 2.5 runtimes.

Verified the package deployment in Azure without problem.

like image 112
Neio Zhou Avatar answered Nov 12 '22 15:11

Neio Zhou


Per dev team, this is a bug in 2.5 version of tools. It will be fixed in 2.5.1 version which is currently expected to be available before end of this month (March).

like image 24
Alexey Yeltsov Avatar answered Nov 12 '22 15:11

Alexey Yeltsov


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

like image 1
Wayne Kuo Avatar answered Nov 12 '22 15:11

Wayne Kuo