且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

TF14098:访问被拒绝:用户XXX需要标签权限$ /

更新时间:2023-12-01 20:31:40

您好Radhika,


感谢您发布此处。


>> TF14098:Access拒绝:用户svcapp2需要标签权限


/。

对于错误消息,请给用户"svcapp2"通过以下步骤标记权限:

1.在Visual Studio中连接到您的集合。

2.在Source Control Explore中,在集合级别选择并右键单击它,选择"高级" - >"安全"。


3。添加用户"svcapp2"并设置"标签"允许此用户获得
允许



Hi,

We use Jenkins to build the application which will connect to TFS to get latest version and update build number. This was working fine till we move to TFS 2015,update 3. now after migration, we are getting the "TF14098: Access Denied: User XXX needs Label permission(s) for $/".

I tried the option mentioned here still getting same error. https://blogs.msdn.microsoft.com/tfssetup/2015/12/04/tfs-2015-rtm-update-1-tf14098-access-denied-user-needs-label-permissions-for/

Below is the output of the Jenkins build. please help me to resolve the issue.

"D:\workspace\Build\MsBuildCommon\Archive\UpdateSoftwareVersion.proj" (default target) (1) ->
(BuildAll target) ->
  D:\workspace\Build\MsBuildCommon\Archive\UpdateSoftwareVersion.proj(9,5): error MSB4018: The "IncrementBuildNumberTask" task failed unexpectedly.
D:\workspace\Build\MsBuildCommon\Archive\UpdateSoftwareVersion.proj(9,5): error MSB4018: Microsoft.TeamFoundation.VersionControl.Client.ResourceAccessException: TF14098: Access Denied: User svcapp2 needs Label permission(s) for $/. ---> System.Web.Services.Protocols.SoapException: TF14098: Access Denied: User svcapp2 needs Label permission(s) for $/.
D:\workspace\Build\MsBuildCommon\Archive\UpdateSoftwareVersion.proj(9,5): error MSB4018:    --- End of inner exception stack trace ---
D:\workspace\Build\MsBuildCommon\Archive\UpdateSoftwareVersion.proj(9,5): error MSB4018:    at Microsoft.TeamFoundation.Client.Channels.TfsHttpClientBase.HandleReply(TfsClientOperation operation, TfsMessage message, Object[]& outputs)
D:\workspace\Build\MsBuildCommon\Archive\UpdateSoftwareVersion.proj(9,5): error MSB4018:    at Microsoft.TeamFoundation.Client.Channels.TfsHttpClientBase.Invoke(TfsClientOperation operation, Object[] parameters, TimeSpan timeout, Object[]& outputs)
D:\workspace\Build\MsBuildCommon\Archive\UpdateSoftwareVersion.proj(9,5): error MSB4018:    at Microsoft.TeamFoundation.VersionControl.Client.Repository5.LabelItem(String workspaceName, String workspaceOwner, VersionControlLabel label, LabelItemSpec[] labelSpecs, LabelChildOption children, Int32 maxClientPathLength, Failure[]& failures)
D:\workspace\Build\MsBuildCommon\Archive\UpdateSoftwareVersion.proj(9,5): error MSB4018:    at Microsoft.TeamFoundation.VersionControl.Client.WebServiceLayerLocalWorkspaces.LabelItem(String workspaceName, String workspaceOwner, VersionControlLabel label, LabelItemSpec[] labelSpecs, LabelChildOption children, Failure[]& failures)
D:\workspace\Build\MsBuildCommon\Archive\UpdateSoftwareVersion.proj(9,5): error MSB4018:    at Microsoft.TeamFoundation.VersionControl.Client.VersionControlServer.CreateLabel(VersionControlLabel label, LabelItemSpec[] itemSpecs, LabelChildOption options, Failure[]& failures)
D:\workspace\Build\MsBuildCommon\Archive\UpdateSoftwareVersion.proj(9,5): error MSB4018:    at Microsoft.TeamFoundation.VersionControl.Client.VersionControlServer.CreateLabel(VersionControlLabel label, LabelItemSpec[] itemSpecs, LabelChildOption options)
D:\workspace\Build\MsBuildCommon\Archive\UpdateSoftwareVersion.proj(9,5): error MSB4018:    at BuildUtilities.TFSManager.BaselineProject(Workspace workspace, Object[] data)
D:\workspace\Build\MsBuildCommon\Archive\UpdateSoftwareVersion.proj(9,5): error MSB4018:    at BuildUtilities.TFSManager.Execute(ExecuteTFSAction executeTFSAction, Object[] data)
D:\workspace\Build\MsBuildCommon\Archive\UpdateSoftwareVersion.proj(9,5): error MSB4018:    at BuildUtilities.TFSManager.BaselineProject(String version)
D:\workspace\Build\MsBuildCommon\Archive\UpdateSoftwareVersion.proj(9,5): error MSB4018:    at NableBuildTasks.IncrementBuildNumberTask.Execute()
D:\workspace\Build\MsBuildCommon\Archive\UpdateSoftwareVersion.proj(9,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
D:\workspace\Build\MsBuildCommon\Archive\UpdateSoftwareVersion.proj(9,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext()

    0 Warning(s)
    1 Error(s)


Radhika

Hi Radhika,

Thank you for posting here.

>>TF14098: Access Denied: User svcapp2 needs Label permission(s) for


/.
For the error message, please give the user "svcapp2" Label permission by the following steps:
1. Connect to your collection in Visual Studio.
2. In Source Control Explore, select at collection level and right-click it, choose "Advanced"-->"Security".

3. Add the user "svcapp2" and set the "Label" permission to Allow for this user.