VS2013构建定义“ Microsoft.TeamFoundation.Client.BasicAuthCredential”未标记为可序列化 [英] VS2013 Build Definition 'Microsoft.TeamFoundation.Client.BasicAuthCredential' is not marked as serializable

查看:124
本文介绍了VS2013构建定义“ Microsoft.TeamFoundation.Client.BasicAuthCredential”未标记为可序列化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一些背景信息。我正在使用;




  • Visual Studio 2013

  • 在GIT中使用Visual Studio Online(VSO)

  • 托管构建控制器。



每次我去编辑构建定义时,Visual Studio都会抛出和错误,如下图所示。


Team Foundation错误



类型程序集 Microsoft.TeamFoundation.Client,版本= 12.0.0.0,Culture =中性,PublicKeyToken = b03f5f7f11d50a3a中的 Microsoft.TeamFoundation.Client.BasicAuthCredential未标记为可序列化


有关Visual Studio中显示的错误的屏幕截图,请单击此链接;团队基础错误



链接到错误的屏幕截图

解决方案

我花了一个多小时来寻找解决此问题的方法,直到放弃发现了Brian Misini的博客,其中发布了一种解决方案,可用于编辑通用凭证。



编辑凭据对我来说不起作用,但是完全删除凭据并重新启动Visual Studio可以解决问题。



希望这篇文章可以使其他人在使用搜索引擎时更容易找到解决此问题的方法

解决方案:http://brian.minisi.net/2014/01/21/basicauthcredential-not-serializable/



摘要中的解决方案:



重置凭据




  • 转到控制面板>用户帐户>管理Windows凭据>在常规凭据选项卡中,找到适用于您的TFS服务器的凭据,然后编辑凭据。

  • 如果这不起作用,请尝试删除凭据。


Some background information. I am using;

  • Visual Studio 2013
  • Using Visual Studio Online ( VSO ) with GIT
  • Hosted Build Controller.

Everytime I went to edit a build definition, Visual Studio would throw and error as shown below in the image.

Team Foundation Error

Type 'Microsoft.TeamFoundation.Client.BasicAuthCredential' in assembly 'Microsoft.TeamFoundation.Client, Version=12.0.0.0,Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' is not marked as serializable

For a screenshot of the error displayed in Visual Studio Follow this link; Team Foundation Error

Link to Screenshot of Error

解决方案

I searched for well over an hour for a solution to this issue and was about to give up until a found a blog post by Brian Misini which posted a solution to edit the generic credential.

Editing the credential did not work for me, but removing the credential altogether and restarting visual studio did the trick. Removing the credential has not proven to have any negative side affect as yet.

Hopefully this post will make it easier for others to find a solution to this problem when using search engines and also to give credit where credit is due to Brian Misini.

Solution: http://brian.minisi.net/2014/01/21/basicauthcredential-not-serializable/

Solution in Summary:

Reset your credentials

  • Go to Control Panel > User Accounts > Manage Windows Credentials > In tab Generic Credentials, find the one for your TFS server and edit the credentials.
  • If that doesn’t work, try removing the credential.

这篇关于VS2013构建定义“ Microsoft.TeamFoundation.Client.BasicAuthCredential”未标记为可序列化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆