我尝试从TFS部署,但收到错误:
Exception Message: Invalid enum value 'FailedStartingRole' cannot be deserialized into type 'Microsoft.TeamFoundation.Deployment.Workflow.AzureManagement.v1_7.InstanceStatus'. Ensure that the necessary enum values are present and are marked with EnumMemberAttribute attribute if the type has DataContractAttribute attribute. (type SerializationException)
Exception Stack Trace:
at System.Activities.Statements.Throw.Execute(CodeActivityContext context)
at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
之前有任何想法或类似的遭遇吗?
答案 0 :(得分:3)
当我遇到类似的问题时,我在Azure中部署了以前失败的部署。因此,修复TFService错误只是为了从Azure管理门户删除有故障的部署。
答案 1 :(得分:0)
对于SerializationException类型,检查WCF类是否属于DataContractAttribute属性,以及DataMemberAttribute属性。枚举项需要使用属性EnumMemberAttribute进行归因。
我在使用Windows Azure 1.7时遇到一些问题,您是否安装了其他版本的Windows Azure?,验证您是否正在使用WindowsAzure.Client。我你做升级是有可能然后你有冲突。