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
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.
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).
This bug is now fixed in the latest Azure SDK 2.5.1 release.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With