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

TFS Custom controls - Why the field changed event handler get triggered many times for the same field change at a time?

$
0
0

TFS API code. I added my event handler here

 object IWorkItemControl.WorkItemDatasource
        {
            get
            {
                return workItem;
            }
            set
            {
                workItem = (WorkItem)value;
                AddEventHandler();
            }
        }

private void AddEventHandler()
        {
            if (workItem != null && workItem.Id != 0)// && workItem.State != wiClosed )
            {
                workItem.FieldChanged += new WorkItemFieldChangeEventHandler(this.workItem_changed);              
            }
        }

The handler is getting triggered multiple times for the same field change. I can understand one point that if a field changes makes changes to other field  means; its perfect that the method will be triggered for each field change. But why it is invoked for the same field change? Am I adding the event handler at wrong place ? 


TFS 2013 - External dll references?

$
0
0
Hello

We are going to migrate our build system to TFS 2013 Express and we are going to use it with Git.
We have some external references to the projects that are NOT AND CANNOT be versionated
due to the fact that these assemblies are big third-party assemblies and continuosly under development.

How can we manage that?
Is there a way to tell TFS to lookup for a folder containing external dll references for the build?

Thank you

Shelveset for review process.

$
0
0
Hi guys,

We are using shelvset for the review. However, I want to know if there is any way to associate shelveset with the work item and can be seen in the list of links like changeset?

Thanks,
Amit
Non-disclosed illusion

TFS - Custom controls in Visual Studio - Event handlers get trigered thrice

$
0
0

 workItem.FieldChanged += new WorkItemFieldChangeEventHandler(this.workItem_changed);
               workItem.Saving += new WorkItemPreSaveEventHandler(this.workItem_preSave);

I am wondering why these handlers are getting called thrice when a presave or fieldchanged event just occur for one time. I got stuck up in this. I am throwing an error message inside these handler (tried with both handlers) . Because of this multi-time calling, I am getting the error message box in Visual studio for three times. Please help . If it is that way it is done, then please suggest how I can display the error message in work item(Ex:TFS system throws error when a required field is not given) itself rather than using message box and how to prevent save. or any way i can do this by use of threading or something. I am bit new to .NET threading concepts.

(BUG??) Team Foundation Server 2013 Update 4 Support for SQL 2014

$
0
0

Scenario: On Windows 2012 R2 x64 I have installed SQL, Reporting Services & AS 2014 (applied all updates through Windows Update), SharePoint 2013 Foundation, and installed Team Foundation Server 2013 RTM (did not configure).

Before configuring TFS, I applied Update 4 to the server (not update 1,2 or 3 directly). When trying to configure I get the following error:

==========================

TF255146: Team Foundation Server requires SQL Server 2012 SP1 (11.00.3000) or greater. The SQL Server instance you supplied is version 12.0.2254.0.

TF400403: The Report Server instance specified is version 12.0.2254.0, the minimum supported version is 11.0.3000.

TF400070: A required version of a component is not installed on the application tier. You must exit the Team Foundation Administration Console and install a supported version of either SQL Server Analysis Services of the SQL Server Client Tools on the application tier to ensure that the Analysis Services object model is present for warehouse processing.

====================================

My understanding is that as of Update 2 (or was it 3) that SQL 2014 was supported. However it appears if that particular update is not installed directly it bypasses the check. Can someone verify I am seeing the intended result or is this a bug?

Selecting Behavior property of the Call Behavior Action on a UML Activity Diagram

$
0
0
I have 16 projects in my UML solution, and I need to be able to select a Behavior in the Call Behavior Action property that is in one Activity Diagram, from a list of Activity Diagrams that are located in different projects, but still in the same overall Solution.  Currently, it looks like I can only select Behaviors from within the same project.

Can't queue a build after upgrading from 2008 to 2012 (TF246021)

$
0
0

Hi,

We're trialling an upgrade from TFS 2008 to 2012.4. New TFS has been set up on new hardware with new slq and build boxes. Then we imported 2008 backups and used TFSConfig to import / upgrade them. No errors or warnings where shown.

Unfortunately we can't queue any builds on the collection. Even a brand new definition in a new team project building "hello world". Builds in other collections work OK.

The error we're getting is 

"TF246021: An error occurred while processing your request. Technical information (for administrator): SQL Server Error: 2601"

Exception Message: Cannot insert duplicate key row in object 'dbo.tbl_BuildQueue' with unique index 'PK_tbl_BuildQueue'. The duplicate key value is (2, 1). (type SqlException)
SQL Exception Class: 14
SQL Exception Number: 2601
SQL Exception Procedure: prc_iiQueueBuilds
SQL Exception Line Number: 553
SQL Exception Server: TFSSQL001\INST1
SQL Exception State: 1
SQL Error(s):

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


Exception Stack Trace:    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.Execute(ExecuteType executeType, CommandBehavior behavior)
   at Microsoft.TeamFoundation.Build.Server.DataAccess.BuildQueueComponent5.QueueBuilds(IEnumerable`1 requests, QueueOptions options)
   at Microsoft.TeamFoundation.Build.Server.TeamFoundationBuildService.QueueBuilds(TeamFoundationRequestContext requestContext, IList`1 requests, QueueOptions options)
   at Microsoft.TeamFoundation.Server.WebAccess.Build.ApiBuildController.QueueBuild(String definitionUri, String controllerUri, String whatToBuild, String shelveset, Nullable`1 checkin, String priority, String dropFolder, String msbuildArgs)
   at lambda_method(Closure , ControllerBase , Object[] )
   at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass42.<BeginInvokeSynchronousActionMethod>b__41()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass37.<>c__DisplayClass39.<BeginInvokeActionMethodWithFilters>b__33()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass37.<BeginInvokeActionMethodWithFilters>b__36(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.<>c__DisplayClass2a.<BeginInvokeAction>b__20()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult)
   at System.Web.Mvc.Controller.<>c__DisplayClass1d.<BeginExecuteCore>b__18(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar)
   at System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar)
   at System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult)
   at System.Web.Mvc.MvcHandler.<>c__DisplayClass8.<BeginProcessRequest>b__3(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar)
   at System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

I found a thread with similar error but it doesn't help us.

http://social.msdn.microsoft.com/Forums/en-US/ec3f9a9d-0c93-422b-bbc4-959e1e6bfe59/tf246021-an-error-occurred-while-processing-your-request-technical-information-for?forum=TFService

Any help will be much appreciated.




TFS Workitems:Bugs : I want ot select different lists, from the global list, for fields basd upon user group

$
0
0

Hi,

I am customizing the bug workitem workflow.

 I want ot select different lists, from the gllobal list, for fields basd upon user group

I am aware that I can use "when" clauses in the allowed/suggested values of the field.

My question is : how do I get the group(s) that the current user is in and how do use this to select different lists?



TFS Add New Server Error

$
0
0

When I try and add a new tfs server in Visual Studio 2013 Premium I get the following error.

Any ideas how I can fix this?

https://social.msdn.microsoft.com/Forums/getfile/601111

How to call environment specific script in Release Management

$
0
0

Hi,

I need some guidance to call environment specific script in RM.

Description in details:

i'm using TFS13,RM13 and trying to automate Database Project.I have installed and SSDT for VS13, created a SQL project in VS13, triggered a build, DACPAC got generated in drop location, created a component in RM and i was able to deploy it on respective server.

But, the major use-case is, we have to run a script based on environment, for ex i want to call devscript.sql in dev environment and prodscript.sql file in prod environment.

How to call environment specific scripts in Release template.

Thanks in advance.


Thanks, BHSR

Fail to open Team project home page with Error in "Microsoft.TeamFoundation.Server.Core.TeamFoundationTeamService.HasTeamPermission"

$
0
0

Hi, we have some team has been removed and added back to a team project, however, the team members are no longer able to access the team project home page. They can access those Work item page without any issue. We found following exception logged in server event log. Actually not much information found in internet, appreciate for your help or advice.

Team project home page

TF53010: The following error has occurred in a Team Foundation component or extension:
Date (UTC): 2015-01-23 6:21:31 AM
Machine: OTFS01
Application Domain: /LM/W3SVC/2/ROOT/tfs-1-130664596115764812
Assembly: Microsoft.TeamFoundation.Framework.Server, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a; v4.0.30319
Service Host: 4ed1c5cf-07aa-46b9-9a92-279c1f91e6b3 (GLSHK)
Process Details:
  Process Name: w3wp
  Process Id: 4532
  Thread Id: 7096
  Account name: INTDomain\User

Detailed Message: TF30065: An unhandled exception occurred.

Web Request Details
    Url: http://TFSServer:8080/tfs/Collection/TeamProject/ [method: GET]
    User Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)
    Headers: Connection=Keep-Alive&Accept=text%2fhtml%2c+application%2fxhtml%2bxml%2c+*%2f*&Accept-Encoding=gzip%2c+deflate&Accept-Language=en-US&Host=otfs01%3a8080&User-Agent=Mozilla%2f5.0+(compatible%3b+MSIE+9.0%3b+Windows+NT+6.1%3b+Win64%3b+x64%3b+Trident%2f5.0)&UA-CPU=AMD64
    Path: /tfs/Collection/TeamProject/
    Local Request: False
    Host Address: 10.145.1.XX
    User: INTDomain\User [authentication type: NTLM]

Exception Message: Object reference not set to an instance of an object. (type NullReferenceException)
Exception Stack Trace:    at Microsoft.TeamFoundation.Server.Core.TeamFoundationTeamService.HasTeamPermission(TeamFoundationRequestContext requestContext, TeamFoundationTeam team, Int32 requestedPermissions, Boolean alwaysAllowAdministrators)
   at Microsoft.TeamFoundation.Server.WebAccess.Presentation.HomeController.SetTeamMembersData()
   at Microsoft.TeamFoundation.Server.WebAccess.Presentation.HomeController.Index()
   at lambda_method(Closure , ControllerBase , Object[] )
   at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass42.<BeginInvokeSynchronousActionMethod>b__41()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass37.<>c__DisplayClass39.<BeginInvokeActionMethodWithFilters>b__33()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass37.<BeginInvokeActionMethodWithFilters>b__36(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.<>c__DisplayClass2a.<BeginInvokeAction>b__20()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult)
   at System.Web.Mvc.Controller.<>c__DisplayClass1d.<BeginExecuteCore>b__18(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar)
   at System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar)
   at System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult)
   at System.Web.Mvc.MvcHandler.<>c__DisplayClass8.<BeginProcessRequest>b__3(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar)
   at System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

How to access workitemstore using TeamFoundationRequestContext argument

$
0
0

Is it possible to access workitemstore using  TeamFoundationRequestContext  in theRequestReady eventhandler ? See below code

I am able to get only the changed workitem fields how do i access other fields in the changed workitem.
I donot want to use Processevent handler  and also even in processEvent handler only changed fields will be available.


 public class WorkItemChangedHandlerTriggerValidation : ITeamFoundationRequestFilter
    {

    
        public void RequestReady(TeamFoundationRequestContext requestContext, object notificationEventArgs)
        {
            //get out as quickly as possible if it's not a call we are interested in
            string url = System.Web.HttpContext.Current.Request.Url.ToString(); ;
            if (url.Contains("CatalogService.asmx") || url.Contains("LocationService.asmx") || url.Contains("AdministrationService.asmx") ||
                url.Contains("SharedResourceService.asmx") ||
                url.Contains("repository.asmx") ||
                url.Contains("_api/_security/DisplayPermissions") ||
                url.Contains("item.ashx") ||
                url.Contains("TeamConfigurationService.asmx") ||
                url.Contains("SyncService") ||
                url.Contains("App_Themes") ||
                url.Contains("_scripts") ||
                url.Contains("_content") ||
                url.Contains("_api/_common/") ||
                url.Contains("_api/_identity/ReadGroupMembers") ||
                url.Contains("_api/_identity/ReadScopedGroupsJson") ||
                url.Contains("BuildQueueService.asmx") ||
                url.Contains("BuildService.asmx") ||
                url.Contains("Registration.asmx") ||
                url.Contains("IdentityManagementService2.asmx") ||
                url.Contains("Upload.ashx") ||
                url.Contains("_api/_webSettings/setBoolean"))
                return;

            Validators.SecurityValidator.CheckIfProjectAdminCallToSecurity(requestContext, url);
            Validators.RequestValidator.Validate(requestContext);
        }
    }

Visual studio 2013 TFS comparing local to server files is not working as in vs 2010

$
0
0

when i am going to compare my local file with the server version in visual studio 2013 TFS,it's not considering the latest version in the server just it's considering the latest version which i have in my local and the changed file which i modified.But in vs 2010 it's working perfect as i expected(compare the local file with the highest change set number in the server).

Please let me know why its not working in vs 2013.Is this a bug?

Thank you,

UPradeep.

Find/View Labels via TFS Web Access

$
0
0

Is it possible to search or view files by label using TFS Web Access 2013? If so, how?

Thanks in advance!

Can TFS Error messages be customized?

$
0
0
 Say for the message " work item cannot be added as a link" . I want to change it as "_ child items are only allowed"

How to track who has downloaded anything from TFS Source Control

$
0
0

We are using TFS 2013 and need to know what options we have to track when large amounts of code have been "gotten" from the repository.

When an Engineer executes a "Get Latest" on any folder structure in TFS, I need to be able to run a report showing me what they downloaded.  

Is that possible?  If so, how?


Tony DiGiorgio

Principal Architect

Phytel


TFS 2012 Security, Windows Groups, To many users listed in scroll lists

$
0
0

Good Day to all,

I've been asked,  Is it possible to remove windows groups from TFS that are not pertinent. 

How does TFS obtain windows groups?  We've observed that there are missing groups but there are a significant number that have nothing to do with us.

And Drop Down lists such as the Task Editor  'Assigned to:'  contain hundreds of names that are not pertinent to our TFS.  Is it possible to limit this list as well.

Thank you - Covi

 


Mark Covian

Need TFS Expert to set up our TFS server

$
0
0

I'm looking for someone with a deep understanding and expertise in TFS to help us set up our TFS server in a VM on Azure. We can certainly do the job ourselves by following some articles/videos but I would like it to be done right and also get some advice on ALM using TFS.


Thanks, Sam

TF 14109: Parts of the file XXX were not uploaded

$
0
0

Hi,

Has anyone encountered TF 14109 error?

I used my TFS for a long time, everything works fine. Yesterday i wanted to check in a project which contains lots of data and binaries (exe+dll), then i got TF 14109: Parts of the file XXX were not uploaded.

At the beginning, i had thought too many files were causing check-in failure. So i just picked up the file getting problem, and checked in specifically, but i still got the same error.

However when I put that file to another TFS, i can successfully checked it in. 

Hao

Do I need Install VS in test agent

$
0
0

Hi. I have test agent in my local TFS 2013. I try execute remotely CodedUI Test from Build Definition. But I see error:

Exception Message: Could not load file or assembly 'Microsoft.VisualStudio.QualityTools.Common, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. (type FileNotFoundException)
Exception Stack Trace:    at Microsoft.TeamFoundation.Lab.Workflow.Activities.ExecuteRemoteTestRun2.TestRunCreation.CreateTestRun(CodeActivityContext context, ITestManagementService testManager, ITestManagementTeamProject project)
   at Microsoft.TeamFoundation.Lab.Workflow.Activities.ExecuteRemoteTestRun2.TestRunCreation.Execute(CodeActivityContext context)
   at System.Activities.CodeActivity`1.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
   at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

So. In Virtual Machine didn't install Visual Studio 2013.  Do I need install VS to test agent to solve this problem?

Or If I will put this missing library's in some folder in test agent. Can I use it, when I execute test?  

Viewing all 6687 articles
Browse latest View live


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