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

TFS 2017 client hangs up

$
0
0
I develop a Visual Studio package that gets some data from VSO. I run into a
problem when I try to connect to VSO from my code:
var host = new Uri("MYACCOUNT.visualstudio.com");
var collection = new TfsTeamProjectCollection(host);
collection.Authenticate();
Everything works fine, when I use the TFS 2015 client assemblies. But the
code hangs up when I switch to the TFS 2017 assemblies.

Note, it works when user is logged in VSO before using my package. It seems
that it waits when the main thread is ready, but it is locked by the
Authenticate() call.

Rewriting all the code in async way is very time-consuming. Is there a way
to authenticate the user in sync way using the TFS 2017 client?

TFS Displayed content is truncated due to maximum viewable content limit - TFS 2015 update 3

$
0
0

Dear All, 

When viewing code from a commit on TFS Web access from TFS 2015.3 and the file is long, the diff mode shows discrepancies and the following message is:

"Displayed content is truncated due to maximum viewable content limit."

Is this a expected behavior for TFS2015.3? 

Can this be changed by a setting?

Thank you

TFS2017 - unable to enable the new work item form

$
0
0

Hello-

I just upgraded from TFS 2013 to TFS 2017.  Very nice improvements!

I am trying to "Enable the new work item form" on the Collection Overview settings/control panel page.  I click that, then do the "Create new layout" button, then "Configure the opt-in model", change to "Enable opt-in for all users" and click Save.  I'm not getting the new work item form option to display- for either regular users or for users who are Collection Administrators.  If I go back to  the Control Panel Collection Overview page, it then shows"Enable the new work item form" as if I didn't do that.

A couple of notes: we're running Urban Turtle and so I've had to temporarily "turn off new navigation" because the Urban Turtle plug-in isn't showing the Urban Turtle menus (they state that they're going to be releasing a new plug-in soon.)  Oddly, once I did that, I am unable to "Turn on new navigation" back on!  This might be a part of the problem...?  The new navigation was in place until I disabled it for UT.

Also, not sure if it's important- I'm using a slightly modified Agile template for Work Items.

Thanks for any help!  Andrew

Lost access to repoitory, and I'm the Admin

$
0
0

TFS2015 Update 2, On-premises, Git

One of  our repositories started giving erros to users when trying to clone.  Also noticed he buikds started t fail becuase the could not pull the code down.  I went to the web portal and when I go to the repository on concern (all others are working fine by the way) I get this error;

Error

The page you are looking for is currently unavailable.

TF401027: Your account () lacks the permission(s) required for the operation you are attempting. You need to have 'GenericRead'. Please contact your administrator.

I am the admin for TFS.  I tried to access it several ways but no luck.  This doesn;t seem to be a permissinos thing, more of a problem with the repository.

I'm looking for how to fix or diagnose this probelm.

TFS Restful API (Wiql - Workitem Query Lanaguage)

$
0
0

Hi Everyone,

I am facing some problem consuming TFS Restful API (Wiql) in JavaScript.


I am working on TFS 2015 Web Access Control, wherein I need to get some Workitems by querying database.

I am using below code of Work Item Query language , TFS Restful API in Javascript. But it is throwing 'Bad Request' error. Though, Other Restful API calls are working fine on my TFS server.

Error Message : "Unexpected character encountered while parsing value: q. Path '', line 0, position 0." 

 $(document).ready(function () {

                    $.ajax({
                        type: 'POST',
                        url: 'https://<server>/<collection>/_apis/wit/wiql?api-version=1.0',
                        contentType: 'application/json',
                        data: { query: "Select [System.Id] from WorkItems Where [System.WorkItemType] = 'Task'" },

                        success: function (data) {
                            alert('POSTED SUCCESSFULLY TO THE SERVER');
                        }, // Success Function
                        error: function (msg, url, line) {

                            alert(msg);
                            alert(url);
                            alert(line);
                        }


                    });

                });

Any Ideas what is wrong in this code?

Best Regards,

Mittal

Export Test plan Artifacts icon not visible

$
0
0

Hi All,

Im using TFS Webaccess. I dont see export plan artifacts icon in the web portal.



Im seeing as below

Am I missing something or any configuration is required?

I have multiple plans and test cases under it. I dont see a reason why it should'nt display.

we are using  isual Studio Team Foundation Server 2015

isual Studio Team Foundation Server 2015

"The user name {0} is not a fully-qualified user name." error on build server since upgrading to TFS "15" RC2

$
0
0

Has anyone else had trouble running XAML builds pointed to TFS "15"? We have one build agent running without issue, but our 2nd build agent for BizTalk builds keeps running into the "The user name {0} is not a fully-qualified user name." error.

We've tried restarting the build agent server and re-entering the username/password for the service to no avail. Looking for suggestions.

How to do 'check in' to code that uses Nuget package

$
0
0

Hi,

i added a nuget package to my project and i use it. now i want to do 'check in' to my code. (i use micorostAPICodePack package)

what is the  best way to do it? i'm using microsoft tfs 2013. 


Package Management (nuget feed) extention licensing

$
0
0

Hi!

We have installed Package Management extension in our  on premises TFS 2017 server. On extension install page there was the extension's price - $4/user. On extension's settings page there is another prices table, starting from $10/month for 10 users and so on.  

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:



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 Datawarehouse VS Woritem query

$
0
0

We have two ways of querying the TFS data 

1 . WIQL query:  which uses the tables like WorkItems 

2 . TFS Datawarehouse query: which uses the tables like DimWorkItems and others

Which should be used when .Is there any adavatanges or disadvatages over one another?

Thanks


Girish

TFS 2017 Team Project with no Project Administrator (Upgraded from 2015 RTM)

$
0
0

hi!

I have a problem with a Team Project on TFS 2017.   Specifically, it has no members in its Project Administrators group.   Further, when I attempt to add a member under any account with any level of permissions, TFS says "You do not have the required permissions to perform this action."    (Displayed on the security web page:

https://<server>/tfs/<collection>/<project>/_admin/_security?_a=members)

My account is in the BUILDIN/Administrators group of the machine, and it is a TFS Administration Console user.   It is a Project Collection Administrator, and has also been placed in all of the TFS groups using TfsSecurity.

None of these permissions allow me to put a user into the project administrators group of that project.   Can you tell me how to work around this issue?   I have an older copy of this collection running under TFS 2015 RTM, and on that server I am allowed to put a user into the project administrators group of that project and remove him with no issues.

Nothing else that I can detect has changed.   Only the TFS version (2015 RTM versus 2017)

Is there a way around this situation?   How can I get a project administrator into that project on TFS 2017 when it currently has no Project Administrator?

Using GIT

$
0
0

Hi !

I am really not sure if I am asking this in the right place. Any everything is kind of overwhelming me when I Google the subject.

I have a Visual Studio 2017 RC project. I would like to use the source control feature to maintain a backup of my source off-site.

I am getting confused with using GIT and the Team Viewer Tab.

I am looking for some basic instructions to create get a copy of my source backed up remotely.

Then I am looking for basic instructions for keeping this source up to date.

I also use MantisBT for feature requests and I do not know if the two can be integrated either.

I guess it is simple when you grasp the concept. But I am a bit lost with this.

TFS web dashboard for multiple projects

$
0
0

Hi,

1)Would anyone provide guidance about how to build a web dashboard for multiple projects at one place

2) Lets say we have a feature to be developed in a project and we have multiple teams to do their own piece to get the feature implemented. How do we get the effective status of that feature? ( Eg : A feature is in Active Status and there are 5 user stories which need to be done by 5 teams independent of each other. One team has the story closed and other four active. Is there a way to extract the status ?Any pointers?)

Thank you in anticipation.


Ka


Visual Studio Git Folder Structure

$
0
0

Hi,

I would like to use Git feature on Visual Studio. But, I have a question about folder structure. Whenever I push my project, it is always like this within my Git repo:

What I want is the inside that folder. Here is:

I want is that all my file above is at the top level, without creating a folder in my Git repo. Is there anyone can help me with that ?

Thank You


Adityo Setyonugroho

Test Management Warehouse Sync - TF246018: The database operation exceeded the timeout limit and has been cancelled

$
0
0

Hello,

We just upgraded our TFS from 2012.2 to 2017 with success.

After the upgrade I get a lot of event viewer errors from the warehouse the error is this:

[Test Management Warehouse Sync]: ---> Microsoft.TeamFoundation.Warehouse.WarehouseException: TF221122: An error occurred running job Test Management Warehouse Sync for team project collection or Team Foundation server NeoGamesCollection. ---> Microsoft.TeamFoundation.Framework.Server.DatabaseOperationTimeoutException: TF246018: The database operation exceeded the timeout limit and has been cancelled. Verify that the parameters of the operation are correct. ---> System.Data.SqlClient.SqlException: Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding. ---> System.ComponentModel.Win32Exception: The wait operation timed out --- End of inner 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, Boolean isInternal, Boolean forDescribeParameterEncryption) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, 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& usedCache, Boolean asyncWrite, Boolean inRetry) 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) --- End of inner 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.TestManagement.Warehouse.WarehouseResultDatabase.QueryTestResults(SqlBinary watermark, Int32 limit, ProcessRowCallback resetCallback, ProcessMappingDataCallback dataCallback, ResolveIdentities resolveIdentitiesCallBack) at Microsoft.TeamFoundation.TestManagement.Warehouse.TeamTestWarehouseAdapter.QueryForResults(WarehouseResultDatabase wrd, SqlBinary waterMark, Int32 limit) at Microsoft.TeamFoundation.TestManagement.Warehouse.TeamTestWarehouseAdapter.<>c__DisplayClass116_0.<ProcessIntegratedResults>b__0() at Microsoft.TeamFoundation.TestManagement.Warehouse.TeamTestWarehouseAdapter.ProcessDataWithDiagnosticInfoLogging[T](Func`1 processBatch, Int32 limit, T& highWaterMark) at Microsoft.TeamFoundation.TestManagement.Warehouse.TeamTestWarehouseAdapter.MakeDataChanges() at Microsoft.TeamFoundation.Warehouse.WarehouseSyncJobExtension`1.MakeDataChanges(IVssRequestContext requestContext, TeamFoundationJobDefinition jobDefinition, String& resultMessage) at Microsoft.TeamFoundation.Warehouse.WarehouseSyncJobExtension`1.RunInternal(IVssRequestContext requestContext, TeamFoundationJobDefinition jobDefinition, DateTime queueTime, String& resultMessage) at Microsoft.TeamFoundation.Warehouse.WarehouseJobExtension.Run(IVssRequestContext requestContext, TeamFoundationJobDefinition jobDefinition, DateTime queueTime, String& resultMessage) --- End of inner exception stack trace ---</

I tried to find a solution on the web but non of them helped...

Can you please help

Thanks!

Roy


R.R

Team foundation server 2017 "release management server" feature

$
0
0


Hi,
We are planning to migrate TFS 2013 to TFS 2017(TFS15).
 Is Release Management Server features are available in TFS 2017? or Want to install Release management server separatly and configure to 2017? If release managment server is separate then what is cost of licensing and requirements?

In TFS 2013 release management server and client want to be installed in separate server then want to connect with TFS 2013.

Thanks in advance

Siva

Cloud Building - Download finished project?

$
0
0
So I am extremely new to using Team Foundation so please inform me if my wording or even my question is not valid. So tonight I installed Visual Studio and Team Foundation Server onto a fresh install of Windows Server 2012 R2. I can successfully write code in my visual studio, publish it, and have it build within the team foundation server. However after that I don't understand the point because I want to download my completed build. For example I built a console application simply to test the building. Now that it has successfully build where do I go to download the finished product. I see parts on there for publishing like web sites and so on but that doesn't help me. From the screenshot posted below how do I do something like download a zip folder of the completed application?

Branch renaming - Binding Error

$
0
0

Hello,

We've created 3 branches for DEV, TEST, and PROD and placed the same source code in each. The branch has the same name as the solution. However when we rename the branch (suffixing with -DEV -TEST -PROD), the build in VS-TFS2015 not only fails saying the folder doesn't exist, but we receive binding errors in Visual Studio when trying to open the project.

The only solution we've found is to hack the .sln file in notepad and rename the project and directory to match the branch name.

What is the suggested approach to promoting source code up through a tiered environment without hacking the .sln file?

Thanks,

Adam Turner


Try to look ahead so you're not forced to look behind.


Viewing all 6687 articles
Browse latest View live


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