Work item history display revision change even though no field values were updated

by Xavier Dilip Kumar 15. April 2014 13:36

Impact:

  1. History displays all changes to Rev field through service account when iteration path nodes are modified
  2. Changed date and Changed by field values are updated automatically

Reason:

This issue occur when we rename, move, or make any changes to the iteration path nodes in TFS web portal settings.

More Details

Tags:

TFS 2012 | TFS 2013

After applying update 2, not able to connect to TFS 2013 server with Urban Turtle 4.16 installed

by Xavier Dilip Kumar 15. April 2014 06:20

Exceptions:

Client exception: TF31002 : Unable to connect to this Team Foundation Server

Server exception:  Could not load type 'Microsoft.TeamFoundation.Server.WebAccess.Routing.SupportedRouteAreaAttribute' from assembly 'Microsoft.TeamFoundation.Server.WebAccess, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

Explanation:

Looks like there are compatibility issues with Urban Turtle 4.16 or earlier with TFS 2013 Update 2. You will see the above exceptions, as soon as you apply update 2 on TFS 2013 server with Urban Turtle 4.16 installed.

Solution:

You need to uninstall Urban Turtle 4.16 or earlier and install Urban Turtle 4.16.1. You will end up with the following error while uninstalling Urban Turtle 4.16 after applying Update 2. 

Urban Turtle 4.16 is not compatible with this version of Team Foundation Server 2013. Please make sure that you are running Team Foundation Server 2013 (RTM, build 21005.01) or download a compatible version from our website.

Workaround to uninstall Urban Turtle 4.16 or earlier: 

1. Use TFSServiceControl quiesce command to ensure that all necessary operations, services, and application pools are stopped for maintenance tasks

  • TFSServiceControl quiesce

2.Launch the Registry Editor (c:\windows\regedit.exe)

2.Navigate to key 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\TeamFoundationServer\12.0'

3.Double-click on the 'BuildNumber' entry

4.Change the value to 21005.01

5.Uninstall Urban Turtle 4.16

6.Restore the value of 'BuildNumber' back to '30324.00'

7. Use TFSServiceControl unquiesce command to start all necessary operations, services, and application pools for TFS

  • TFSServiceControl unquiesce 

8.Install Urban Turtle 4.16.1

Reference

 

Tags:

TFS 2013

How to install TFS update on TFS Servers?

by Xavier Dilip Kumar 9. April 2014 20:32

STEPS:

1. Log on to your TFS App tier

Note : Make sure you had backed up all databases related to TFS before installing the update

2. Use TFSServiceControl quiesce command to ensure that all necessary operations, services, and application pools are stopped for maintenance tasks

  • TFSServiceControl quiesce

3. Install the update.

4. Run the TFS Admin console tool to configure the TFS App Tier for installed update.

5. Use TFSServiceControl unquiesce command to start all necessary operations, services, and application pools for TFS

  • TFSServiceControl unquiesce 

If you have multiple app tier(s), proceed with step 1 to 3 on each app tier one by one first and then proceed with step 4 and 5 on each app tier one by one.

Tags: ,

TFS 2012 | TFS 2013

Could not connect to TFS server within Eclipse plugin from linux OS

by Xavier Dilip Kumar 25. March 2014 07:35

Explanation:

TFS user was not able to connect to TFS through Eclipse plugin from linux box. TFS connection hangs forever. When I tried to debug, I found the user was not able connect to intranet\internet within Eclipse IDE.

Solution:

Enabled the proxy settings in the Eclipse IDE. Following are the steps

1. Open Eclipse

2. Go to "Windows" --> " Preferences" menu

3. Expand "general"

4. Select  "Network Connections"

5. Select "Active Provider" as manual

6. Select " HTTP " --> click "Edit"  --> Enter Host as "Your proxy server" and port as "Your proxy server port (usually 80)" --> click "ok" --> click "ok" --> click "apply"

7. Restart "Eclipse"

8. Try connecting to TFS Server.

 

Tags:

TFS | TFS 2012 | TFS 2013

How to enable the TFS add-in for excel?

by Xavier Dilip Kumar 18. March 2014 11:33

Solution:

  • Open Excel
  • Click on “File” --> “Option” menu
  • Click on “Add-Ins”
  • Search for “Team Foundation Add-in”
  • If you see “Team Foundation Add-in” under “Disabled Application Add-in”
  • Select “Disabled Items” and click “Go” button  
  •  
  • Select “Team Foundation Add-in” and click “Enable”
  •  
  • Close and reopen excel

Tags:

TFS 2010 | TFS 2012 | TFS 2013

How to enable trace logs in the build environment?

by Xavier Dilip Kumar 18. March 2014 11:19

Explanation:

Following are the steps to enable trace logs in the build environment

1. On the Build machine (both controller and agent) ,  copy the attached .config file (TFSBuildServiceHost exe.config (2.25 kb)) to C:\Program Files\Microsoft Team Foundation Server 2010\Tools.

2. Create a new directory named c:\logs and ensure that the account under which the service Visual Studio Team Foundation Build Service Host has write permission on c:\logs.

3. Restart the build controller/agent service (net stop tfsbuildservicehost & net start tfsbuildservicehost).

4. Trace log will be generated under c:\logs

Steps to enable log in the windows event viewer 

1. On the Build machine, go to Event Viewer and navigate to the following path:

  • Application and Services Logs\Microsoft\Team-Foundation-Server\Build-Services.

 2. We want a detailed level tracing:

  • Go to the ‘View’ menu and select ‘Show Analytic and Debug Logs’. Once you do that there will be 2 channels available under this event source, Operational and Analytic

** The operational log is always on and provides high-level auditing of failures and events, while the Analytic log is off by default and provides very detailed information about activities in the build machine.

 

** You can enable the Analytic log, by right click and select Enable Log.


 

Tags:

Team Build | TFS 2010 | TFS 2012 | TFS 2013

TF259137: The following account does not have sufficient permissions to complete the operation: DOMAIN\user. The following permissions are needed to perform this action: Write.

by Xavier Dilip Kumar 10. March 2014 10:02

Solution:

Check whether the "[PROJECT NAME]\Project Administrators" group has permissions for the team project

Command to view current permissions

tfslabconfig.exe permissions /collection:<CollectionURL> /Url:VSTFS:///LabManagement/TeamProject/<TeamProject> 

Command to grant permissions

tfslabconfig.exe permissions /collection:<CollectionURL> /Url:VSTFS:///LabManagement/TeamProject/<TeamProject> 

/Group:"[PROJECT NAME]\Project Administrators" /allow:*

Tags:

TFS 2010 | TFS 2012 | TFS 2013

How to clone a build definitions from one project to another within a same collection?

by Xavier Dilip Kumar 7. March 2014 12:31

Solution:

You can use TFS power tools command line utility to clone a build definition across projects

Note: You can download and install TFS Power Tools from http://visualstudiogallery.msdn.microsoft.com/b1ef7eb2-e084-4cb8-9bc7-06c3bad9148f

1. Open "Visual Studio" command prompt

2. You can use the following command to preview the build definition clone

tfpt builddefinition /clone "<Source Team Project Name>\Build Definition" "<Target Team Project Name>\Build Definition" /Collection:http://tfs:8080/tfs/DefaultCollection /preview

3. You can use the following command to clone the build definition

tfpt builddefinition /clone "<Source Team Project Name>\Build Definition" "<Target Team Project Name>\Build Definition" /Collection:http://tfs:8080/tfs/DefaultCollection

Only the well-defined build definition can be cloned using this approach meaning the build source build definition should have all the mandatory (required) properties filled with values

For example:

The source build definition without Build controller name cannot be cloned using this approach.

You can also use * wildcard character to clone all build definitions at one shot, provided you have well-defined build definition at source team project.

tfpt builddefinition /clone "<Source Team Project Name>\*" "<Target Team Project Name>\"  /Collection:http://tfs:8080/tfs/DefaultCollection

Remember to update the following build properties to the cloned build definition. 

1. Disable build definition to prevent accidental triggering.

2. Change workspace mapping to target team project source.

3. Change drop location.

4. Change the build process template to point to the right projects.

5. If you use custom build workflow/tasks, make sure your build controller custom assembly references are pointed to target team project source control

6. Enable the build definition.

 

Tags: , ,

TFS 2010 | TFS 2012 | TFS 2013

How to change the work item maximum attachment size?

by Xavier Dilip Kumar 14. February 2014 08:16

Explanation:

By default, The maximum WI attachments size is set to 4 MB but the attachment size can be increased up to 2GB

Solution:

  1. Log on to the application-tier server for TFS.

  2. open the URL: http://localhost:8080/tfs/<Collection Name>/WorkItemTracking/v1.0/ConfigurationSettingsService.asmx?op=SetMaxAttachmentSize

  3. Enter the size in bytes, and then choose Invoke. For 9.5 MB, enter  10000000.

    SetMaxAttachmentSize, ConfigurationSettingsService

Solution:

INSERT INTO [<Collection DB Name>].[dbo].[tbl_RegistryItems] VALUES (1,'#\Service\WorkItemTracking\Settings\','MaxAttachmentSize\',10000000);

Tags:

TFS 2010 | TFS 2012 | TFS 2013

What are the access levels in Team Web Access ? And How to set the access levels and enable the features?

by Xavier Dilip Kumar 5. February 2014 20:02

Explanation:

Following are the access levels

Limited: This level of access restricts the user so that they can only view work items that they create in Team Web Access (also known as Work Item Only View). No other features, such as team pages, are available to users in this group.

License Required: No client access license (CAL) is required for this level of Team Web Access.

Features available:

  • View my work items

Standard: This is the default level of access in Team Web Access for your users. Members of this group can view all Team Web Access features except for: sprint planning and backlog views any of the features for requesting feedback from users and managing that feedback. 

License Required:Team Foundation Server (TFS) CAL is required for all users with this level.

Features available:

  • View my work items

  • Standard features (home page, team queries, access to source and build pages)

  • Agile boards (Kanban board, task boards)

  • Backlog and sprint planning tools

  • Chart viewing

Full: This level is reserved for users who are licensed to use all features available in Team Web Access, including the sprint planning and backlog management tools and the Request and Manage Feedback tools.

License Required Visual Studio Test Professional with MSDN, Visual Studio Premium with MSDN, or Visual Studio Ultimate with MSDN. These MSDN subscriptions each include a TFS CAL for the subscriber.

Features available:

  • View my work items

  • Standard features

  • Agile boards

  • Backlog and sprint planning tools

  • Request and manage feedback

  • Test case management

  • Team rooms

  • Agile portfolio management

  • Chart viewing

  • Chart authoring

To set access levels:

  1. Goto TFS home page (http://TFSServer:8080/tfs). You need to have TFS Administrator permission to set the access levels

  2. Add the user or group.

    Add the user or group

Reference

Tags:

TFS 2012 | TFS 2013

About the author

My name is Xavier Dilip Kumar Jayaraj and I am a Software Configuration Management Engineer with a background in application development, Build & packaging using Install Shield.

Profile in LinkedIn

  

Quotes I Like

"Failure will never overtake me if my determination to succeed is strong enough."  - Dr. APJ. Abdul Kalam

"Always be yourself, express yourself, have faith in yourself, do not go out and look for a successful personality and duplicate it." - Bruce Lee

"Technology is just a tool. In terms of getting the kids working together and motivating them, the teacher is the most important." - Bill Gates

"Innovation distinguishes between a leader and a follower." - Steve Jobs

Disclaimer

The information provided here is based on my expreriences, troubleshooting and online/offline findings. It can be used as is on your own risk without any warranties and I impose no rights.

Month List