Quantcast
Channel: Team Foundation Server - General forum
Viewing all 6687 articles
Browse latest View live

How can i find work item in TFS

$
0
0

How can i find work item in TFS
I know only part word in title

exampe

WorkItem
Title ='Best task abrakadabra'

I need find 'abra'

In mssql i'm use LIKE '%abra%'

Tell me please how make this in Team Foundation Server

Thanks


Azure Subscription & TFS

$
0
0

Hello,

I have an Azure Bizspark subscription. I would like create a new project on the TFS. Could I add developers to member of the team project if they don't have Azure (BizSpark) subscription ?

Best regards, 

Yuriy


Azure Subscription & TFS

$
0
0

Hello,

I have an Azure Bizspark subscription. I would like create a new project on the TFS. Could I add developers to member of the team project if they don't have Azure (BizSpark) subscription ?

Best regards, 

Yuriy


How to run a tfs build on the another server??

$
0
0

Hi
I am using tfs 2015.3

I want to create a virtual machine separate from tfs server.

what am i do? what pre-require system such as OS and etc...?

can I have install windows 10 from build server OS?

TFS 2015 Update 2 failed to handle "Get Work Item" by query from Project Pro 2016: Error converting value 'System.Security.Principal.WindowsIdentity' ... to type 'Microsoft.VisualStudio.Services.Identity.IdentityDescriptor'

$
0
0

Hi:

Our place has an on-site Team Foundation Server (TFS) 2015 with Update 2. I'm using Project Pro 2016 client copy on Windows 7, and it fails to "get work items" by a saved query from TFS. However, getting the work items by ID or Title are fine. The error message is the following:

Error converting value 'System.Security.Principal.WindowsIdentity' ... to type 'Microsoft.VisualStudio.Services.Identity.IdentityDescriptor'. Path 'authenticatedUser.descriptor', line 1, position 169.

I'm not using any customized team project, or collection, and this is just out-of-box feature with TFS & Project 2016. Is this a "Microsoft.VisualStudio.Services" assembly problem for TFS to do impersonation?

Thanks for the help!

Jack


TFS Git - Change Local Repo

$
0
0

Been using GitHub for years.  Newer to Git in TFS 2015.

I miscreated my local directory and want to change.  Now if i change on the file system, Team Explorer won't let me do anything other than show me a message in yellow that the path is incorrect.

How do i blank this out or something and start fresh, or better yet, tell VS where the new local get repo is?

How to access team project list or Git project list using TFS REST API

$
0
0

Hi ,

I am trying the following to get list of projects from "on prem" TFS 

  private static async void Method()
        {
            try
            {
               

                using (HttpClient client = new HttpClient())
                {
                    client.DefaultRequestHeaders.Accept.Add(
                        new System.Net.Http.Headers.MediaTypeWithQualityHeaderValue("application/json"));

                    client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic",
                        Convert.ToBase64String(
                            System.Text.ASCIIEncoding.ASCII.GetBytes(
                                string.Format("{0}:{1}", "Username", "Password"))));

                    using (HttpResponseMessage response = client.GetAsync(
                                "http://test-test-app1:8080/tfs/boc_projects/_apis/projects?api-version=2").Result)
                    {
                        response.EnsureSuccessStatusCode();
                        string responseBody = await response.Content.ReadAsStringAsync();
                        Console.WriteLine(responseBody);
                    }
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.ToString());
            }
        }

I am using a user name and password which has admin permissions on TFS i am trying to connect.But i get unauthorized access error when i try the above.

manage test plan / test suites

$
0
0

Hi,

Recently started a company and my TFS profile wont allow me to create tests. I can create them through MTM (i think im using a different account for that), however much easier (bulk) using the Grid in TFS.

How does an admin add these permissions to my profile, step by step please. I've already asked and not sure of steps required.

Thanks

David



Random issue - TFS web shows in "high contrast" mode

$
0
0

Hi, it's not a big problem, but I keep finding TFS web switches to high contrast mode.  I have definitely not made the change myself. The latest time it occurred I had just been switching from a sprint to the main backlog and it went from normal to high contrast mode.

I just wonder if it's a known issue, or whether or not there's something I can do at my end to stop this happening?

Is VS 2015 a prerequisite for using Release Management?

$
0
0

Hi,

We're using the latest update for Visual Studio 2015, and TFS.

I'm trying to configure Release Management.

Now it seems for every environment, I need to install a Build Agent on the server, that the release will be deployed on.

It also seems that Visual Studio 2015 being on that machine is a prerequisite for the Build Agent to be deployed.

But that doesn't make sense, no customer would want VS to be installed on their Production server.  
is there a subset of Visual Studio that is the bit necessary for the Build Agent to work, for deployments?

Are there any other workarounds you would recommend?

Thanks

-Sam Amin

Unable to load DLL 'Microsoft.WITDataStore32.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

$
0
0

I have added the latest version (14.102.0) of Microsoft.TeamFoundationServer.ExtendedClient  through NuGet Package Manager to the project and connecting TFS to use data in Coded UI testing. Whenever I debug a solution "Unable to load DLL 'Microsoft.WITDataStore32.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)" is thrown  at line

var tfsConnectedTeamProject = iTestManagementService.GetTeamProject("TfsProjectName");

Please note that his happens only when i debug the test, without debugging I could able to run Coded UI test without any issues also as a work around we have copied solution from my machine to different machine, debugging just works fine and it didn't thrown any error. I have seen few workarounds like copying native dll's to bin folder which didn't worked. Please refer below for full exception message.



Result StackTrace:
at Microsoft.TeamFoundation.WorkItemTracking.Client.DataStore.DataStoreNative32.CreateDatastore(IntPtr& handle)
   at Microsoft.TeamFoundation.WorkItemTracking.Client.DataStore.DataStoreNative.CreateDatastore(IntPtr& handle)
   at Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemStore.InitializeInternal()
   at Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemStore.Microsoft.TeamFoundation.Client.ITfsTeamProjectCollectionObject.Initialize(TfsTeamProjectCollection teamProjectCollection)
   at Microsoft.TeamFoundation.Client.TfsTeamProjectCollection.InitializeTeamFoundationObject(String fullName, Object instance)
   at Microsoft.TeamFoundation.Client.TfsConnection.CreateServiceInstance(Assembly assembly, String fullName)
   at Microsoft.TeamFoundation.Client.TfsConnection.GetServiceInstance(Type serviceType, Object serviceInstance)
   at Microsoft.TeamFoundation.Client.TfsTeamProjectCollection.GetServiceInstance(Type serviceType, Object serviceInstance)
   at Microsoft.TeamFoundation.Client.TfsConnection.GetService(Type serviceType)
   at Microsoft.TeamFoundation.TestManagement.Client.TestManagementTeamProject.GetWitProject()
   at Microsoft.TeamFoundation.TestManagement.Client.TestManagementTeamProject.get_WitHelper()
   at Microsoft.TeamFoundation.TestManagement.Client.TestManagementTeamProject.get_SharedParameterDataSetWorkItemTypeName()
   at Microsoft.TeamFoundation.TestManagement.Client.TestManagementTeamProject.get_HasSupportForSharedParameterDataSets()
   at Microsoft.TeamFoundation.TestManagement.Client.TestManagementTeamProject..ctor(TestManagementService manager, String projectName)
   at Microsoft.TeamFoundation.TestManagement.Client.TestManagementService.<GetTeamProject>b__0_0(String name)
   at Microsoft.TeamFoundation.TestManagement.Client.ObjectCache`2.Get(Key key, Creator creator)
   at Microsoft.TeamFoundation.TestManagement.Client.TestManagementService.GetTeamProject(String projectName)
   at Sample.DataSource.TFSConnection.MapTestCaseParameters(Int32 testCaseId) in C:\SampleAutomation\Sample\Main\Src\Automation\TestAutomation\TestAutomation\DataSource\TFSConnection.cs:line 17
   at Sample.DriverFunctions.SystemAdmin.CreateUser_Run() in C:\SampleAutomation\Sample\Main\Src\Automation\TestAutomation\TestAutomation\DriverFunctions\SystemAdmin.cs:line 329
Result Message:
Test method Sample.DriverFunctions.SystemAdmin.CreateUser_Run threw exception: 
System.DllNotFoundException: Unable to load DLL 'Microsoft.WITDataStore32.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)



Manoj Kumar M



TFS Automation Script Execution issue - Microsoft.VisualStudio.TestTools.UITest.Extension.UITestException: Playback is already initialized..itialized..

$
0
0

We are executing coded UI test scripts via TFS and scripts are executed in a remote machine. But when executed all our test scripts are getting failed with the following error.

 

Initialization method test.TestCase1.beforeMethodConfiguration threw exception. Microsoft.VisualStudio.TestTools.UITest.Extension.UITestException: Microsoft.VisualStudio.TestTools.UITest.Extension.UITestException: Playback is already inInitialization method test.ts_Test.TestCase1.beforeMethodConfiguration threw exception. Microsoft.VisualStudio.TestTools.UITest.Extension.UITestException: Microsoft.VisualStudio.TestTools.UITest.Extension.UITestException: Playback is already initialized..itialized..

 

Appreciate if anyone can help us on a solution for the above issue. We need your help on this.



Is Code Search available on Team Foundation Server Proxy?

$
0
0

I want to install code search and make it available for the developers on our company. Code Search is not installed on our TFS server. We are using proxy server for TFVC. But now the question is : Is it possible to use Code Search on Team Foundation Server Proxy? Can you please help me out on this?


TFS agent installation on MAC OS system

$
0
0

Hi Team,

We are unable to install TFS 2015 agent on MAC OS machine and we are getting the below error.

Please advice the same.

ERROR:

 ./configure.sh

Enter alternate username > AS\RR247286

Enter alternate password > 

Enter server url >  TFS URL

Enter agent name   > MACOSAGENT

Enter agent pool name (enter sets default)  > MACOSPool

Enter force basic (enter is false)  > 

Error starting the agent

Failed Request: Unauthorized(401) - TFS URL /_apis/connectionData

Shutting down host.

regards

KSP


Karthick Saravana Perumal

TFS - New Backlog Definition Problem

$
0
0

Hi,
I've been trying to create a new process template by overriding CMMI template. We decided to seperate Requirement work item into two different work items "Software Requirement" and "Customer Requirement"in accordance with existing domain definitions. Both two work items have their own state machine ( different from each other ) and state transitions. As you will notice, there are category declarations in Category.xml file as follows ; 

  <CATEGORY name="Requirement Category" refname="Microsoft.RequirementCategory">
    <DEFAULTWORKITEMTYPE name="Requirement" />
  </CATEGORY>

Also, there is requirement backlog definition in ProcessConfiguration.xml file ; 

  <RequirementBacklog category="Microsoft.RequirementCategory" pluralName="Requirements" singularName="Requirements" workItemCountLimit="1000">
    <States>
      <State value="Proposed" type="Proposed" />
      <State value="Active" type="InProgress" />
      <State value="Closed" type="Complete" />
    </States>
    <Columns>
      <Column refname="System.WorkItemType" width="100" />
      <Column refname="System.Title" width="400" />
      <Column refname="System.State" width="100" />
      <Column refname="Microsoft.VSTS.Scheduling.Size" width="50" />
      <Column refname="Microsoft.VSTS.CMMI.RequirementType" width="150" />
      <Column refname="Microsoft.VSTS.Common.ValueArea" width="100" />
      <Column refname="System.IterationPath" width="200" />
      <Column refname="System.Tags" width="200" />
    </Columns>
    <AddPanel>
      <Fields>
        <Field refname="System.Title" />
        <Field refname="Microsoft.VSTS.CMMI.RequirementType" />
      </Fields>
    </AddPanel>
  </RequirementBacklog>

  So, I thought that I need to seperate "Category Definition" and "Backlog Definition". When I made this seperation I get the following error ; 

   The element 'ProjectProcessConfiguration' has invalid child element 'CustomerRequirementBacklog'. List of possible elements expected: 'TestPlanWorkItems, TaskBacklog, RequirementBacklog, TestSuiteWorkItems, ReleaseStageWorkItems, BugWorkItems, StageSignoffTaskWorkItems, FeedbackRequestWorkItems, Properties, WorkItemColors, FeedbackResponseWorkItems, ReleaseWorkItems, Weekends'.

   Here is the new Category and new Backlog definitions I've added into process template definition ; 

   Category.xml :

  <CATEGORY name="Customer Requirement Category" refname="Microsoft.CustomerRequirementCategory">
    <DEFAULTWORKITEMTYPE name="Customer Requirement" />
  </CATEGORY>
  <CATEGORY name="Software Requirement Category" refname="Microsoft.SoftwareRequirementCategory">
    <DEFAULTWORKITEMTYPE name="Software Requirement" />
  </CATEGORY>


  ProcessConfiguration.xml : 

   <CustomerRequirementBacklog category="Microsoft.CustomerRequirementCategory" pluralName="Customer Requirements" singularName="Customer Requirement" workItemCountLimit="1000">
    <States>
      <State value="Proposed" type="Proposed" />
      <State value="Analysis" type="InProgress" />
      <State value="Closed" type="Complete" />
    </States>
    <Columns>
      <Column refname="System.WorkItemType" width="100" />
      <Column refname="System.Title" width="400" />
      <Column refname="System.State" width="100" />
      <Column refname="Microsoft.VSTS.Scheduling.Size" width="50" />
      <Column refname="Microsoft.VSTS.CMMI.RequirementType" width="150" />
      <Column refname="Microsoft.VSTS.Common.ValueArea" width="100" />
      <Column refname="System.IterationPath" width="200" />
      <Column refname="System.Tags" width="200" />
    </Columns>
    <AddPanel>
      <Fields>
        <Field refname="System.Title" />
        <Field refname="Microsoft.VSTS.CMMI.RequirementType" />
      </Fields>
    </AddPanel>
  </CustomerRequirementBacklog> 

  <SoftwareRequirementBacklog category="Microsoft.SoftwareRequirementCategory" pluralName="Software Requirements" singularName="Software Requirement" workItemCountLimit="1000">
    <States>
      <State value="Proposed" type="Proposed" />
      <State value="Active" type="InProgress" /> 
      <State value="Approved" type="InProgress" /> 
      <State value="Closed" type="Complete" />
    </States>
    <Columns>
      <Column refname="System.WorkItemType" width="100" />
      <Column refname="System.Title" width="400" />
      <Column refname="System.State" width="100" />
      <Column refname="Microsoft.VSTS.Scheduling.Size" width="50" />
      <Column refname="Microsoft.VSTS.CMMI.RequirementType" width="150" />
      <Column refname="Microsoft.VSTS.Common.ValueArea" width="100" />
      <Column refname="System.IterationPath" width="200" />
      <Column refname="System.Tags" width="200" />
    </Columns>
    <AddPanel>
      <Fields>
        <Field refname="System.Title" />
        <Field refname="Microsoft.VSTS.CMMI.RequirementType" />
      </Fields>
    </AddPanel>
  </SoftwareRequirementBacklog> 

  It does not accept any new backlog definition in ProcessConfiguration.xml while uploading template into TFS Server. Could you please help to identify the reason behind this error ? Does TFS provide the functionality for new backlog definition / customization ?

Thanks in advance,

Best Regards


When TFS 2015 build is deleted, its drop folder does not get deleted.

$
0
0

When a TFS 2015 build is deleted, the drop folders are not getting deleted. This issue is fixed in TFS15 as per this link: https://connect.microsoft.com/VisualStudio/feedback/details/1513256/build-preview-drop-folder-not-deleted-when-build-is-deleted

Is there any patch planned for TFS2015?

Thank You

Export Build Definition Report

$
0
0

Is there a way to generate a report that includes the following information?

Build Definition Name

Trigger Type (Manual, CI, Gated)

Source Control Folder

Maybe a PowerShell module?

Workitem error using WEB-interface in TFS 2015 2.1 - _TypeError: Unable to get property 'getText' of undefined or null reference

$
0
0

Hi,

We've experienced issues lately when creating workitems using the web-interface. I've searched the forums for similar errors. The walkaround was to empty the browser cache, but that do not seem to work in our case.

We're using TFS 2015 2.1 with a customized SCRUM template.

The problem arise when trying to save a new work-item using the TFS-WEB interface. No data seems to be lost though. No issues discovered using visual studio for creating workitems...

Is there anyone out there that have experienced this?

Here's the error message (with cripled links):

• Unable to get property 'getText' of undefined or null reference
• TypeError: Unable to get property 'getText' of undefined or null reference
•    at t.prototype.getText (https ://our.server.com/tfs/_static/tfs/Dev14.M95.4/_scripts/TFS/min/corejs?v=YrJp6kQQNlNj0Ry13Qyzbxc2AlDqoyJIv9ZoZrnvNN81:406:6079)
•    at t.prototype.validate (https: //our.server.com/tfs/_static/tfs/Dev14.M95.4/_scripts/TFS/min/WidgetsJsCore?v=XWC_goi6ePOyjUkVBv2RY-ezMYpGw_ez0kaf777kcGM1:106:2832)
•    at t.prototype.onWorkItemSaved (https ://our.server.com/tfs/_static/tfs/Dev14.M95.4/_scripts/TFS/min/WidgetsJsCore?v=XWC_goi6ePOyjUkVBv2RY-ezMYpGw_ez0kaf777kcGM1:106:4623)
•    at save (https ://our.server.com/tfs/_static/tfs/Dev14.M95.4/_scripts/TFS/min/WidgetsJsCore?v=XWC_goi6ePOyjUkVBv2RY-ezMYpGw_ez0kaf777kcGM1:106:4451)
•    at c.workItemChanged (https ://our.server.com/tfs/_static/tfs/Dev14.M95.4/_scripts/TFS/min/WorkItemTrackingJsCore?v=cRCriiCzO4dUtMfv93ycnHVPP40PTlaiPRY3y0j87Iw1:94:8259)
•    at t.prototype._onWorkItemStatusChanged (https ://our.server.com/tfs/_static/tfs/Dev14.M95.4/_scripts/TFS/min/WorkItemTrackingJsCore?v=cRCriiCzO4dUtMfv93ycnHVPP40PTlaiPRY3y0j87Iw1:94:82868)
•    at Anonymous function (https ://our.server.com/tfs/_static/tfs/Dev14.M95.4/_scripts/TFS/min/corejs?v=YrJp6kQQNlNj0Ry13Qyzbxc2AlDqoyJIv9ZoZrnvNN81:58:208)
•    at u (https ://our.server.com/tfs/_static/tfs/Dev14.M95.4/_scripts/TFS/min/corejs?v=YrJp6kQQNlNj0Ry13Qyzbxc2AlDqoyJIv9ZoZrnvNN81:334:172)
•    at n.prototype.invokeHandlers (https ://our.server.com/tfs/_static/tfs/Dev14.M95.4/_scripts/TFS/min/corejs?v=YrJp6kQQNlNj0Ry13Qyzbxc2AlDqoyJIv9ZoZrnvNN81:334:526)
   at n.prototype.fireEvent (https ://our.server.com/tfs/_static/tfs/Dev14.M95.4/_scripts/TFS/min/WorkItemTrackingJsCore?v=cRCriiCzO4dUtMfv93ycnHVPP40PTlaiPRY3y0j87Iw1:22:89723)
Session Id: 3db55f90-4542-4f56-95af-9cacea2ef6b3

Cheers,

Lars

@CurrentIteration does not work with Personal Access Token

$
0
0
I've a query created with @CurrentIteration. I am calling this query using Web Client from powershell. I am using Personal Access Token (with all Scope). The Web Client throws a 500 error. Now when I change the query to a specific iteration path e.g. "Release 1\ Sprint 3", it executes without any issues. Is there any special care to be taken for such scenarios?

Monish

More of a suggestion, but I would like to be able to add the Markup widget to http://servername:8080/tfs/_home

$
0
0

I think it would helpful, at least to me if we could have the markup widget available on thehttp://servername:8080/tfs/_home

My thought that this page could be sort of a first stop where I could put some TFS instructions / tips.

Viewing all 6687 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>