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

TFS 2017 + Sharepoint 2013 + "Work Item" = 'Form' element cannot contain an element of type 'Unknown'

$
0
0

Hello everyone,

I'm having some problems when i try to add a "New work item" or when i try to "Open a work item" using the sharepoint team site. It doesn't matter the template that i use(Agile, scrum and etc), everytime i get the error 'Form' element cannot contain an element of type 'Unknown' when creating or opening a work item! It's just on the sharepoint team site, if i use the tfs web portal, then everything works, I can create and open work items and the work items created using the tfs web portal appear on the sharepoint team portal as they should, but like i said above i can't open them because of the error.

Image of the problem: http://image.prntscr.com/image/34e6b27d613d4a529cfe2c1c85b0f268.png

The environment:


Machine 1 - TFS 2017 on Windows Server 2012 R2, with MS SQL Server 2014 SP2 + Cumulative update 2(Build 12.0.5522);
Machine 2 - SharePoint 2013 SP1 (with November, 2016, cumulative update) on Windows Server 2012 R2 + TFS 2017 Sharepoint Extension Tools;
Machine 3 - MS SQL Server 2014 SP2 + Cumulative update 2(Build 12.0.5522) on Windows Server 2012 R2 (Used by SharePoint);

/\ this is an upgrade that i did a few days ago from our tfs 2015 update 3 environment, that was also an upgrade from our older tfs 2010 environment, the older tfs 2010 environment didn't have sharepoint! I installed sharepoint after i did the upgrade from TFS 2010 SP1 to TFS 2015 update 3 to test the sharepoint portal because we need to start using it! I did not have any problem with the upgrade from TFS 2010 SP1 to TFS 2015 update 3 and after to TFS 2017(no errors at all during the upgrade)!

Another small problem, is that i don't remember if this issue('Form' element cannot contain an element of type 'Unknown') was happening when i was using the sharepoint team site with TFS 2015 update 3.


Visual Studio 2013 Pro - Pending Changes comments box has vanished

$
0
0

As the title states, when I go to check in pending changes I usually have a box to enter comments. Suddenly, this box has disappeared and I can't get it back!

I tried resetting the computer, resetting the VS environment, starting VS in safe mode, and a couple other things. So far, no luck.

Any ideas what on earth could be the cause?

There should be a comments box around where the red square is.


TFS 2015 vstest: missing dependent assemblies

$
0
0

Executing the "Visual Studio Test" Build Step in TFS 2015 does not work for me because vstest cannot find an assembly (A) that is used by the unittest-project.

"System.IO.FileNotFoundException: The file or assembly..."

The dependencies are as followows:

The Unittest-project uses class library B (which contains the stuff to be tested) and class library A (because class library B  uses class library A)

A and B are referenced as .NET references, so the unitest runner should clearly know that library A is needed.

However it does not find the library A.  But it definitely exists , otherwise the unittest or library B wouldn't even compile.

As all this is not an "exotic" scenario  I guess must be missing something fundamental ?




Isn't it possible to change the e-mail on a user

$
0
0
I need to change a e-mail on a user in Visual Studio Online, isn't that possible?

Regarding the name of TFS Server

$
0
0

Hi Team,

I have installed TFS2010, OS-wind server 2008. Now, while opening the Visual Studio it is asking for TFS server name. How do i get the name of the TFS server? Can you please help me on this?

Regards,

Santhop


Thanks & Regards, Santhop

Modifying a custom field's possible values from API - TFS 2015

$
0
0

I'm using TFS 2015. Is there a way to modify the list of possible values of a custom field via an API?  I've looked through the REST API and I see I can retrieve information on a particular Work Item Field, but it doesn't look like I can set the list of possible values via this interface.  

Is there any way to do this?

tfs- change signin account

$
0
0

hi there,

we are using tfs, to sign-in there i use MyName@abc.com now i want to change it into MyName@xyz.com

may i know how to achieve this?

thanks in advance

TFS 2017 + Sharepoint 2013 + Work Item = Form element cannot contain an element of type Unknown

$
0
0

Hello everyone,

I'm having some problems when i try to add a "New work item" or when i try to "Open a work item" using the sharepoint team site. It doesn't matter the template that i use(Agile, scrum and etc), everytime i get the error 'Form' element cannot contain an element of type 'Unknown' when creating or opening a work item! It's just on the sharepoint team site, if i use the tfs web portal, then everything works, I can create and open work items and the work items created using the tfs web portal appear on the sharepoint team portal as they should, but like i said above i can't open them because of the error.

Image of the problem: http://image.prntscr.com/image/34e6b27d613d4a529cfe2c1c85b0f268.png

The environment:


Machine 1 - TFS 2017 on Windows Server 2012 R2, with MS SQL Server 2014 SP2 + Cumulative update 2(Build 12.0.5522);
Machine 2 - SharePoint 2013 SP1 (with November, 2016, cumulative update) on Windows Server 2012 R2 + TFS 2017 Sharepoint Extension Tools;
Machine 3 - MS SQL Server 2014 SP2 + Cumulative update 2(Build 12.0.5522) on Windows Server 2012 R2 (Used by SharePoint);

/\ this is an upgrade that i did a few days ago from our tfs 2015 update 3 environment, that was also an upgrade from our older tfs 2010 environment, the older tfs 2010 environment didn't have sharepoint! I installed sharepoint after i did the upgrade from TFS 2010 SP1 to TFS 2015 update 3 to test the sharepoint portal because we need to start using it! I did not have any problem with the upgrade from TFS 2010 SP1 to TFS 2015 update 3 and after to TFS 2017(no errors at all during the upgrade)!

Another small problem, is that i don't remember if this issue('Form' element cannot contain an element of type 'Unknown') was happening when i was using the sharepoint team site with TFS 2015 update 3.



Remove TFVC repository

$
0
0

This question was asked but improperly answered here: https://social.msdn.microsoft.com/Forums/vstudio/en-US/c1978483-0c77-40d9-8de7-b5a89aa74ced/delete-tfvc-repository?forum=tfsgeneral

The original question was around how to delete the entire TFVC repository so that the option to even access that repository would be gone.  In the image of that post, what's left would just be the Git repository after deletion as if you never selected TFVC as the base repo for the project.

Is this possible or are we stuck with creating a new project collection to get rid of it?

Regarding Data Parameterization by .CSV File in TFS

$
0
0

Hi There,

i am a new user of TFS Tool. I am working on CodedUI to script some of my project. I need to data parameterize from .CSV File. I followed the following steps in MSDN Link https://msdn.microsoft.com/en-us/library/ee624082.aspx . But no Luck! I kept 5 Test Data in the CSV File . But not picking those value rather iterate 5 times with the recorded value. I am kind'a middle of the Ocean. i will really appreciate your help.

For your reference , i added this code please : - 

using System;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using System.Windows.Input;
using System.Windows.Forms;
using System.Drawing;
using Microsoft.VisualStudio.TestTools.UITesting;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Microsoft.VisualStudio.TestTools.UITest.Extension;
using Microsoft.VisualStudio.TestTools.UITesting.HtmlControls; // added 
using Keyboard = Microsoft.VisualStudio.TestTools.UITesting.Keyboard;


namespace SO_VasselSettlement_32454
{
        [CodedUITest]
    public class SalesOrderInquiry
    {
        public SalesOrderInquiry()
        {
        }

        [TestMethod]

        public void CleartheCache()
        {
            this.UIMap.ClearCache();
        }

        [TestMethod]
        [DataSource("Microsoft.VisualStudio.TestTools.DataSource.CSV", "|DataDirectory|\\data.csv", "data#csv", DataAccessMethod.Sequential), DeploymentItem("data.csv")]
        public void opentheURL()
        {

            this.UIMap.UIAMDHomeInternetExploWindow.UIJDEdwardsDocument.UIE1menuAppIframeFrame.UISalesOrderInquiryTraDocument.UICustomerPOEdit.SearchProperties["FriendlyName"]= "Customer PO";
            TestContext.DataRow[0].ToString();
            
            this.UIMap.SalesOrderInquiry();
            this.UIMap.ValidatedifferentVariables();
            this.UIMap.Comeoutfromthepage();
            this.UIMap.Logout();

        }

               public TestContext TestContext
        {
            get
            {
                return testContext;
            }
            set
            {
                testContext = value;
            }
        }
        private TestContext testContext;

        public UIMap UIMap
        {
            get
            {
                if ((this.map == null))
                {
                    this.map = new UIMap();
                }

                return this.map;
            }
        }

        private UIMap map;
    }
}

Using CSV for test data parameterization in automation testing For CodedUI in TFS2015

$
0
0
HI,

i am a visual studio 2015 user using it for test automation purpose. i have created few of my coded ui test methods. i have the code which got recorder in the ui designer file(but with hard coded values what  i have entered during recording).  i wanted to parameterize by using a CSV file so that it will take different test data to create during my second run of the script. can you please help me with the code that exactly fits to my requirement. i tried various ways using deployment item, data source, but of no use. i am not understanding where to call that method. please help me in this regard. thanks in Advance. 

How to get Src_Folder_Name

$
0
0

Hi,

I need to get the SRC_FOLDER_NAME, which will be generated after TFS finishes the package process.  how to I get it from TF command Console. Need your help. I am new to TFS. Working on some automation stuff.

Thanks

Raj

Process Configuration workitemCountLimit

$
0
0

Hi -

Lets say we have a complex project and it has continuous new back log flowing in and multiple teams working on it.

  1. If we have more than 1000 items in the stories board, it slows down the experience for some users who work on the board. I understand that limit  can be increased to 10000.  would anyone help me understand the impact and any pointers for better management ?( would like to have a seamless experience for users)
  2. Is there any limitation on any number of teams/security groups that can be set up on a single TFS project for optimal performance?
  3. Is there any limitation on number of workitems that can be saved in a collection for optimal performance?

Thank you in anticipation.


Ka




Delete a user from TFS project using Powershell or C#

$
0
0
Need a powershell or c# script to delete a user from TFS project.i have tried to search in google but only code to list the user permission in each project no code to delete a user from team project using script.

How to remove tags from the list?

$
0
0

In our project we use the 'add tag' function often. The list with 'tags' is growing. Now I would like to delete 'tags' which we are not using anymore frome the standard list. Can anyone help me with this issue?

Thanks in advance!


Timeout during Merging Branches - TF246018: The database operation exceed the timeout limit and has been cancelled. Verify that the parameter of the operation are correct.

$
0
0

We moved our TFS 2010 installation to another Server and upgraded to TFS 2017. So far everything worked fine but merging branches.
In Source Control Explorer we start the process with "Branching and Merching" --> "Merge.." --> choose "Selected changesets" and on clicking next, the Changesets should be listed. Here we geht the timeout message.
If I search for Changesets with the "Find Changesets" Dialog, the search performs pretty well and lists the results as expected.

Thanks for your help in advance.

Edit: As somewhere else suggested, i tried to merge Changesets with the command line and "tf merge" command - worked fine.

Here are the Event Log details:

TF53010: The following error has occurred in a Team Foundation component or extension:
Date (UTC): 19.12.2016 12:18:25
Machine: MIA-TFS01
Application Domain: /LM/W3SVC/2/ROOT/tfs-1-131264048035011226
Assembly: Microsoft.TeamFoundation.Framework.Server, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a; v4.0.30319
Service Host: 7f064ff2-7678-4a55-a681-2e24a479d8f8 (DefaultCollection)
Process Details:
  Process Name: w3wp
  Process Id: 4168
  Thread Id: 12828
  Account name: xxx

Detailed Message: TF30065: An unhandled exception occurred.

Web Request Details
    Url: http://xxxxx:8080/tfs/DefaultCollection/VersionControl/v5.0/repository.asmx [method: POST]
    User Agent: Team Foundation (devenv.exe, 12.0.40629.0, Pro, SKU:15)
    Headers: not available
    Path: /tfs/DefaultCollection/VersionControl/v5.0/repository.asmx
    Local Request: False
    Host Address: 10.10.20.143
    User: xxx [authentication type: Negotiate]

Exception Message: TF246018: The database operation exceeded the timeout limit and has been cancelled. Verify that the parameters of the operation are correct. (type DatabaseOperationTimeoutException)
Exception Stack Trace:    at Microsoft.TeamFoundation.Framework.Server.TeamFoundationSqlResourceComponent.TranslateException(Int32 errorNumber, SqlException sqlException, SqlError sqlError)
   at Microsoft.TeamFoundation.Framework.Server.TeamFoundationSqlResourceComponent.TranslateException(SqlException sqlException)
   at Microsoft.TeamFoundation.Framework.Server.TeamFoundationSqlResourceComponent.MapException(SqlException ex, QueryExecutionState queryState)
   at Microsoft.TeamFoundation.Framework.Server.TeamFoundationSqlResourceComponent.HandleException(Exception exception)
   at Microsoft.TeamFoundation.Framework.Server.TeamFoundationSqlResourceComponent.ExecuteCommand(ExecuteType executeType, CommandBehavior behavior, String performanceGroupName)
   at Microsoft.VisualStudio.Services.CircuitBreaker.Command.<>c__DisplayClass7_0.<Execute>b__0()
   at Microsoft.VisualStudio.Services.CircuitBreaker.CommandAsync.<Execute>d__28.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.VisualStudio.Services.CircuitBreaker.Command.Execute(Action run, Action fallback)
   at Microsoft.TeamFoundation.Framework.Server.TeamFoundationSqlResourceComponent.ExecuteCommandWithBaseCircuitBreaker(ExecuteType executeType, CommandBehavior behavior, String performanceGroupName)
   at Microsoft.TeamFoundation.Framework.Server.TeamFoundationSqlResourceComponent.ExecuteReader()
   at Microsoft.TeamFoundation.VersionControl.Server.VersionedItemComponent.QueryMergeCandidates(Workspace workspace, ItemPathPair sourceItemPathPair, ItemPathPair targetItemPathPair, RecursionType recursive, Int32 sourceDeletionId, MergeOptionsEx options, PathLength maxServerPathLength)
   at Microsoft.TeamFoundation.VersionControl.Server.MergeCandidate.QueryMergeCandidates(VersionControlRequestContext versionControlRequestContext, Workspace localWorkspace, ItemSpec source, ItemSpec target, MergeOptionsEx options)
   at Microsoft.TeamFoundation.VersionControl.Server.TeamFoundationVersionControlService.QueryMergeCandidates(IVssRequestContext requestContext, String workspaceName, String workspaceOwner, ItemSpec source, ItemSpec target, MergeOptionsEx options, PathLength maxClientPathLength)
   at Microsoft.TeamFoundation.VersionControl.Server.Repository5.QueryMergeCandidates(String workspaceName, String workspaceOwner, ItemSpec source, ItemSpec target, Int32 options, Int32 maxClientPathLength)

Inner Exception Details:

Exception Message: Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding. (type SqlException)
SQL Exception Class: 11
SQL Exception Number: -2
SQL Exception Procedure:
SQL Exception Line Number: 0
SQL Exception Server: MIA-TFS01
SQL Exception State: 0
SQL Error(s):

Exception Data Dictionary:
HelpLink.ProdName = Microsoft SQL Server
HelpLink.ProdVer = 12.00.4213
HelpLink.EvtSrc = MSSQLServer
HelpLink.EvtID = -2
HelpLink.BaseHelpUrl = http://go.microsoft.com/fwlink
HelpLink.LinkId = 20476


Exception Stack Trace:    at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
   at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
   at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
   at System.Data.SqlClient.SqlDataReader.get_MetaData()
   at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
   at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
   at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
   at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior)
   at Microsoft.TeamFoundation.Framework.Server.TeamFoundationSqlResourceComponent.ExecuteCommand(ExecuteType executeType, CommandBehavior behavior, String performanceGroupName)

Inner Exception Details:

Exception Message: Der Wartevorgang wurde abgebrochen (type Win32Exception)
Exception Stack Trace:



Fetch project collection details using OAuth authorizations

$
0
0

Hi,

Currently i am using service account to fetch Tfs Team Project Collection details.

but now i want to do it through OAuth authorizations . I tried it using VssConnection,

but VssConnection is using different liabrary so i am not able to initialize TfsTeamProjectCollection class.

Though i am able to read the project collection using VssConnection  but it is not returning all the required field which TfsTeamProjectCollection  is returning.

Below is the code which we are using for OAuth.

  VssConnection connection1 = new VssConnection(new Uri(tfsurlNew), new VssOAuthCredential(accessToken));

 WorkItemTrackingHttpClient witClient = connection.GetClient<WorkItemTrackingHttpClient>();
List<QueryHierarchyItem> items = witClient.GetQueriesAsync(projectName).Result;

Please suggest what are the possible ways to do it.

Thanks

jitendra 

TFS OnPrem Web Portal displays 'garbage'

$
0
0

We have an On-Premise of TFS 2015 Update 3 and we have developers who every now and then get this when going to the web portal.  All they have to do usually is refresh the page and it returns to the portal but I am wondering if there is something that we can do to stop this from happening.  Has anyone else ever seen this?


Users\[tfs_user]\AppData\Local\Temp\TFSTemp contains over 312620 files and taking up 1.3GB of disk space

$
0
0

I noticed that our TFS user temp folder on our TFS Server is taking up a lot of disk space from the location

Users\[tfs_user]\AppData\Local\Temp\TFSTemp, this folder contains over 312620 files and uses around 1.3GB

Please tell me if we can delete this folder to free up this disk space and is it safe to do so, will it impact the performance of TFS in any way if removed?

TRx file access in the VNext build

$
0
0

Hi Team,

I have configured my automation test execute as part of VNext build. I am trying to setup the test results in the dashboard.

Test automation are build using specflow (ATDD). All test scrips are in feature file.

Build is working fine and trx file is attached as well.

Once the build is executed, team is downloading the trx file and further generating the HTML report out of trx file.

I need to automate the process and need the way to access the trx file or path of the file. I want to have have batch scripts which does the automation as a VNext build Step.

Thanks in advance!!

Regards,

Vinay

Viewing all 6687 articles
Browse latest View live