Azure TFS部署错误“;无效的枚举值';启动角色失败';无法反序列化为“类型”;

Azure TFS部署错误“;无效的枚举值';启动角色失败';无法反序列化为“类型”;,azure,tfs,azure-devops,azure-deployment,Azure,Tfs,Azure Devops,Azure Deployment,我试图从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

我试图从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)

以前有过任何想法或类似的遭遇吗?

对于序列化异常类型,请检查WCF类是否具有DataContractAttribute属性,以及是否具有DataMemberAttribute属性。枚举项需要使用属性EnumMemberAttribute进行属性化


我在Windows Azure 1.7中遇到一些问题,您是否安装了其他版本的Windows Azure?请验证您是否正在使用WindowsAzure.Client。如果您进行升级,则可能会发生冲突。

当我遇到类似问题时,我以前在Azure中的部署失败。所以,要修复TFService错误,只需从Azure管理门户中删除错误的部署

我试着用谷歌搜索那个例外,但没有成功。我正在本地使用SDK 2.0,这是为我做的。部署失败,只需要删除它并重试生成。我也有一个失败的部署,导致了类似的错误。我想保留它以用于跟踪目的,因此我从Visual Studio部署了一次,然后从Visual Studio Online进行的后续部署成功。您是否尝试从TFS部署到Azure或从VS Online部署到Azure?您尝试部署了什么-Web角色还是其他角色?