TFS Work Item Fields : Adding a condition on Date field
moving code from TFS 2012 to TFS 2013
Hello - I am working on moving the existing code from TFS 2012 to TFS2013.
Under Team Project Selections, there is new branch created as shown in figure.
I am new to TFS, can anyone please provide me step by step procedure in moving code to this new TFS branch please ?
MBH
Unwanted TFS Impersonation in web service
I am attempting to have an approval system where approval can go to a web site and click a button to approve workitems, which will write their current tfs username into a field in the workitem when they click the button.
I am using windows impersonation in the web application, and I have confirmed that the windows authorized user is correct when the application is running (I'll call this user "Proper User"). Strangely, in the workitem, I get the wrong user in the approver field. The user in the approver field appears to be another user that may have previously used the system, or may currently be viewing work items through visual studio or another method (lets call her "Rogue User"). Rogue User is a different user depending on who else has been using the system. Also, when looking at the history, I see something like:
Edited (DesignReview to DesignApproved) by Proper User on behalf of Rogue User
Looking up this syntax, I see that it is supposed to mean that TFS Impersonation was used. However, I am not using TFS impersonation anywhere in my code. Here is the relevant code:
TfsTeamProjectCollection teamProjectCollection = TfsTeamProjectCollectionFactory.GetTeamProjectCollection(new Uri("http://projecturl")); var workItemStore = (WorkItemStore)teamProjectCollection.GetService(typeof(WorkItemStore)); WorkItem workitem = workItemStore.GetWorkItem(iworkitemid); workitem.Fields[approverfield].Value = teamProjectCollection.AuthorizedIdentity.DisplayName; workitem.GetNextState("action"); workitem.Save();
I can confirm that the active directory user is the proper user during execution.. Any ideas why TFS would be doing this? Is there anything I need to call to ensure the authenticated user is the same as the authorized user and windows user when I am not using impersonation?
This is within a web service call. The web application is using a single worker process. Impersonation is set with
<identity impersonate="true" /><authentication mode="Windows" /><authorization><deny users="?"/></authorization>
This is within a web service call.
Thanks in advance for any assistance!
TFS - Access Level - page not found when trying to add user
When I'm trying to modify some group under Limited Access Level I cannot do that because of the following error:
Page not found.
wrapErrorCallback/</<@server/tfs/_static/tfs/12/_scripts/TFS/debug/Presentation/Scripts/TFS/TFS.Core.Ajax.js:175:37
endRequest@server/tfs/_static/tfs/12/_scripts/TFS/debug/Presentation/Scripts/TFS/TFS.Core.Ajax.js:114:17
wrapErrorCallback/<@server/tfs/_static/tfs/12/_scripts/TFS/debug/Presentation/Scripts/TFS/TFS.Core.Ajax.js:141:1
jQuery.Callbacks/fire@server/tfs/_static/3rdParty/_scripts/jquery-1.8.3.js:984:10
jQuery.Callbacks/self.fireWith@server/tfs/_static/3rdParty/_scripts/jquery-1.8.3.js:1094:7
done@server/tfs/_static/3rdParty/_scripts/jquery-1.8.3.js:7815:1
.send/callback@server/tfs/_static/3rdParty/_scripts/jquery-1.8.3.js:8528:8
Any ideas why it happens?
Environment: Windows Server 2012 with latest updates, TFS 2013.4, user which is used for TFS is a member of local administrators group.
Any known issues with changing the Friendly Names?
TFS DB Query Project and User
Hi
Currently I need to some statistic for our TFS 2013. I'm not an admin for TFS Server(So, I guess query by API is off the table), what I got is a read-only account for TFS DB.
So, how can I get all users for a project by purely query the database?
How to handle check-out files of users that are no longer with the company?
TFS issue after changing permission structure
Hi,
I have encountered an issue with TFS after I have moved the permissions for a team around slightly. Originally, inside my Team I had a AD group set for users permissions. I recently changed this so that instead of an AD group there is now a TFS group being used and that TFS group has an AD distribution group added to it.
Since making this change, parts of TFS is no longer working correctly for the team members. When they load the main Team page an error occurs. Although the main page starts to load it has an error with the burndown chart on the page and produces the error below:
A similar error also occurs if the user tries to click on a specific iteration on the backlog as well. I am in the project administrators group and do not get this error. All pages load fine for me.
Does anyone have any ideas why this might be occurring at all? I think I might be able to make a new team to work around this issue, but I would rather find out why this is happening in the first place and rectify it.
TF53010: The following error has occurred in a Team Foundation component or extension:
Date (UTC): 17/03/2015 13:51:22
Application Domain: /LM/W3SVC/2/ROOT/tfs-1-130710711180085223
Assembly: Microsoft.TeamFoundation.Framework.Server, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a; v4.0.30319
Service Host: 9e0bfc4a-6e3b-4a41-a31f-253a51601c47 (Development)
Process Details:
Process Name: w3wp
Process Id: 3916
Thread Id: 6180
Account name: DOMAIN\AlanL
Detailed Message: TF30065: An unhandled exception occurred.
Web Request Details
Url: tfs/tfs/Development/Project/_api/_teamChart/Burndown?chartOptions=%7B%22Width%22%3A312%2C%22Height%22%3A110%2C%22ShowDetails%22%3Afalse%2C%22Title%22%3A%22%22%7D&counter=1&iterationPath=SFRS%5CIteration+4&__v=5 [method: GET]
User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.3; WOW64; Trident/7.0; .NET4.0E; .NET4.0C; .NET CLR 3.5.30729; .NET CLR 2.0.50727; .NET CLR 3.0.30729; InfoPath.3; Tablet PC 2.0)
Headers: Connection=Keep-Alive&Accept=*%2f*&Accept-Encoding=gzip%2c+deflate&Accept-Language=en-GB&Cookie=__RequestVerificationToken_L3Rmcw2%3dqkGfzJVnnsZyGBdcXcaSud8DMcb3b4xcpAlkqLbqe7QwDvUkjMjGs_U0WKBIXsbzzjd_23sG7r6CxdHpO-a3HPC2K8U1%3b+__RequestVerificationToken2bc957728-f3ed-4308-89ad-db1817aca1cb%3dqkGfzJVnnsZyGBdcXcaSud8DMcb3b4xcpAlkqLbqe7QwDvUkjMjGs_U0WKBIXsbzzjd_23sG7r6CxdHpO-a3HPC2K8U1&Host=tfs&Referer=http%3a%2f%2ftfs%2ftfs%2fDevelopment%2fSFRS&User-Agent=Mozilla%2f4.0+(compatible%3b+MSIE+7.0%3b+Windows+NT+6.3%3b+WOW64%3b+Trident%2f7.0%3b+.NET4.0E%3b+.NET4.0C%3b+.NET+CLR+3.5.30729%3b+.NET+CLR+2.0.50727%3b+.NET+CLR+3.0.30729%3b+InfoPath.3%3b+Tablet+PC+2.0)&DNT=1
Path: /tfs/Development/Project/_api/_teamChart/Burndown
Local Request: False
Host Address: 10.0.11.23
User: DOMAIN\AlanL [authentication type: NTLM]
Exception Message: Object reference not set to an instance of an object. (type NullReferenceException)
Exception Stack Trace: at Microsoft.TeamFoundation.Server.WebAccess.WorkItemTracking.Common.TeamFoundationTeamExtensions.<GetAllMembers>b__0(TeamFoundationIdentity identity)
at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
at System.Linq.Enumerable.<ExceptIterator>d__99`1.MoveNext()
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at System.Linq.Enumerable.<ConcatIterator>d__71`1.MoveNext()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at Microsoft.TeamFoundation.Server.WebAccess.WorkItemTracking.Common.TeamConfigurationHelper.ReconcileTeamMemberCapacityInfo(IEnumerable`1 teamMembersCapacity, IEnumerable`1 teamMembers)
Restrictions in TFS plugin for Excel
But i realy need to write to this column, so I will able to update items instead of creating new ones. Is there any way to bypass the restriction?
Thanks in advance.
get old item name for renamed files using TFS API
My current tfs will be retired in next few months.I am using tfs api to create a parallel tfs on a new server from the existing one. I have folders and solutions that have been renamed. I am iterating items and based on their changetype(add, edit, delete, sourcerename etc), I am checking them in destination tfs.
I am not able to get Old filename for a file, in order to use PendRename when the item that is being iterated is Delete|SourceRename or Rename.
I tried the mentioned solution :
But, my changeset has a lot of changes and hence identifying a particular file seems difficult.
Do we have something that interraltes two items (the deleted and renamed) ones other than the changeset, because there needs to be a uniquely identifier that associated the two items so that they may appear together in TFS history?
TFS Setup error
Add text in body of email alert TFS 2012
I need to add text in email body for work item changed event alert email.
I know "WorkItemChangedEvent" this file needs to be changed at location
Drive:\Program Files\Microsoft Team Foundation Server 11.0\Application Tier\TFSJobAgent\Transforms\1033.
But don't know how to add a text.
Thanks in advance.
Undo checkout from another user local workspace
Hello
we are using TFS 2012 with default work-space option as local. I need to move couple of folder to another directory from source control as part of process and iam getting error on one of the file saying its checkedout by another user.
I tried to undo the checkout using sidekicks and command-prompt(tf undo) both showing no changes. I assume its because of local work-space feature in TFS 2012.
Any idea how can i undo these changes and able to move folders to different directories.
I do have admin access and no issues on permissions side.
Linked Server Causing Reference Error in Database Project
Good Morning
I have a database project that will not deploy to my local because of a reference error to a linked server within the code. I have searched high and low about how to get a linked server recognized within a TFS Database Project to no avail. I'm probably missing something simple, but any help will be greatly appreciated.
Regards
Mark
TF31002: Unable to connect to Team Foundation
Microsoft Visual Studio
TF31002: Unable to connect to this Team Foundation Server: http://myserver:8080/tfs.
Team Foundation Server Url: http://myserver:8080/tfs.
Possible reasons for failure include:
- The name, port number, or protocol for the Team Foundation Server is incorrect.
- The Team Foundation Server is offline.
- The password has expired or is incorrect.
Just i have this problem,for others it works.
i changed my password but it doesn't work again,i uninstalled VS and installed it again but the error was there,i removed server and tried to add it again but now when i'm trying to add it before it comes to log in page it shows this error again,i turned my firewall and anti-virus off and tried again but nothing changes so i turned them on but nothing changes.i removed server from my windows credential but again nothing changed same error.
Can you help me to solve my problem?
Best Regards
Aynur
TF31002: Unable to connect to this Team Foundation Server
I am having below issue from one user's machine when I connect from Visual Studio. Server is working fine all other users are able to access the server. Also, working fine on web from IE or Chrome on same machine. I tried from Visual Studio 2010 & 2013 getting same error. Any idea what could be the issue or how to troubleshoot the connection issue?
TF31002: Unable to connect to this Team Foundation Server: http://tfsserver:8080/tfs.
Team Foundation Server Url: http://tfsserver:8080/tfs.
Possible reasons for failure include:
- The name, port number, or protocol for the Team Foundation Server is incorrect.
- The Team Foundation Server is offline.
- The password has expired or is incorrect.
Technical information (for administrator):
The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF
Thanks in advance.
TFS integration with MS Project Server .
Dears,
I need to integrate TFS with ms project server for time Sheet component in ms project server did anyone can help me asap.
Regards & Thanks.
Invalid change indicated on open
I posted this title to the VS install forum thinking it was a configuration issue and one of the moderators moved it over here as a TFS issue. However, it left my name off of the post and the "Reply" link, or any other link on the page, is nonresponsive, indicating a javascriptvoid(0) link name in lower left corner. The only reply from the moderator mentioned comparison of the local and server version. I have done this hundreds of times and always the two versions are identical. Yet, Visual Studio insists on adding an edit asterisk to the tab and TFS requests that I check-out the module EVEN THOUGH NOTHING HAS CHANGED! When closing the tab, it always asks me if want to save the module and since I made no change, I always reply "NO!" Closing VS and rebooting does nothing to help with this situation. WHY does your software insist that a module was changed when there was no change and even the comparison of the local and server versions confirms there was no change to the .aspx or .cs file. Additionally, it sometime requests that I check-out the license .lic file and other supporting files such as the .proj file, again when no change or modification was made.
This is very irritating and I do not know what other information I could possibly elaborate or what good any screen shots would do in describing this condition other than waste my and your time. It is not a coding issue, or anything to do with specific solution and/or project, as it occurs with all solutions, projects, and editable files that are opened in my version of VS 2012 Ultimate without ever having edited a thing.
OS-wise, I am currently using Windows 8.1 Enterprise with all the latest updates on an HP laptop with an i7-4600U CPU @ 2.10GHz and with 16GB of RAM.
Invalid change indicated on open
Integrating TFS with Dynamics CRM CrmSvcUtil.exe for proxy generation in CI builds
Hello
I want to know if someone has been done integration with TFS using CI Builds for regenerate the .cs classes that the tool CrmSvcUitil.exe (Dynamics sdk) provide.
I have done something similar in the past with VS 2010 SDK, in Build Server calling "run custom tools" command for regenerate the edmx file structure before compile the solution.
Any ideas?
regards,
Javier