24
Wed, Apr
0 New Articles

TechTip: Troubleshooting Team Foundation Server

Microsoft
Typography
  • Smaller Small Medium Big Bigger
  • Default Helvetica Segoe Georgia Times

Learn how to properly install TFS and then make the best use of it.

 

Team Foundation Server (commonly known as TFS) is a source control management offering from Microsoft that has over the years matured a lot. TFS provides complete ALM featuresdata collection, project planning and tracking, and also reporting. You should have a good knowledge of Team Foundation Server components, understand its installation prerequisites, and also know the strategies and best practices to make the best use of TFS in your development environment.

 

This article discusses the common troubleshooting issues in TFS and provides some useful tips that can help you to better leverage the power of TFS. There are plenty of issues and fixes and tips to discuss, but I have highlighted only the most common and important ones in this article.

Troubleshooting Team Foundation Server Installation Issues

The most common issues that cause an installation of TFS to fail are as follows:

 

  • You've skipped the installation of one or more procedures while the prerequisites were being installed.
  • You failed to remove one or more components
    of a previous installation of TFS.

 

To fix TFS errors that involve SQL Server Reporting Services, you should open IIS Manager, remove the virtual directories and application pools associated with Reporting Services, and then re-install TFS in your system.

 

You might encounter "MissingMethodException" in Visual Studio Team Explorer 2010. Your Team Explorer might crash frequently. To fix this, re-install Visual Studio 2010 Service Pack 1. You can get Visual Studio 2010 Service Pack 1 here.

Troubleshooting Connections to Team Foundation Server

For a successful TFS installation, you should follow the TFS installation guide perfectly; no steps should be skipped. You should set up the prerequisite domain accounts TFSSETUP, TFSSERVICE, and TFSREPORTS as described in the TFS installation guide. Also, you should make sure that TFSSETUP is in the local administrator group, and you should log in as TFSSETUP to install all TFS components as described in the TFS installation guide.

 

You should also check whether Reporting Services is installed and working perfectly. To do this, browse http://yourservername/reports.

 

Another tip is to open the SQL Reporting Services Configuration utility and check to see whether any system checks failed.

 

You can also create a .reg file in Notepad with the following text inside:

 

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Installer]

"EnableAdminTSRemote"=dword:00000001

"Logging"="voicewarmup"

 

Once you execute it before installing TFS, verbose mode in TFS installation will be switched on.

Some Useful Tips

Make sure that Visual Studio is installed in the system in which you intend to install Team Foundation Explorer (which is a component of the TFS installation). If Visual Studio is installed prior to installing Team Foundation Explorer, the chances of failure in installing Team Explorer will be reduced.

 

To troubleshoot TFS issues, you should first check the Windows Event Log. At times, you may observe that connections to TFS fail. Maybe it was working successfully earlier, but now it no longer works even if you haven't changed anything in TFS and you're getting an error message: "TF31002: Unable to connect to this Team Foundation Server." How do you resolve such connectivity issues?

 

First, you should confirm whether the server is working properly. You can invoke the CheckAuthentication Web service from this URL: http://TFSSERVER:8080/services/v1.0/ServerStatus.asmx?op=CheckAuthentication

 

This check enables you to ensure that Windows Authentication and proxy settings are working perfectly. You should also check whether the user now has access. You should run the following command to check group membership information:

 

TfsSecurity.exe /server:servername /im n:DOMAIN\User

 

If the user's domain password has changed, the user has to log off and log back in to access TFS again. Also, you should check whether the computer's domain certificate is valid by running this command:

 

gpupdate /force

 

When you run the above command, the certificate will be updated.

 

If the TFS users cannot access Team Project Portal, IIS might be stopped on the application server for Team Foundation. To verify whether IIS is running on the application server, click Start->Administrative Tools->Internet Information Services and check whether the service is stopped. Also, look in the IIS Manager to see if the application pool is running.

 

You can use the command line utility called TFSSecurity to create, modify, and delete groups and permissions for users in Team Foundation Server. Here is the syntax for using this command line tool:

 

TFSSecurity /i Identity [/Collection:CollectionURL][/server:ServerURL]

 

You can use the Accounts command to change the service accounts and passwords (modify service accounts) that Team Foundation Server use. Note that you should be part of the Administrators group in order to execute this command. Here is the syntax of using this command:

 

TFSConfig Accounts /change|add|set|delete|updatepassword|resetowner [/AccountType:{ApplicationTier|ReportingDataSource|Proxy}] [/Account:AccountName] [/Password:Password] [/SQLInstance:ServerName] [/DatabaseName:DatabaseName] [/Continue]

Suggested Readings

Here are links to some good references on this topic for further study:

 

 

Summary

In this TechTip, we discussed the common troubleshooting issues in Team Foundation Server installation and post installation. We also discussed the tips that can be followed for a successful Team Foundation Server installation and those that can help you make best use of Team Foundation Server in your development environment.

 

Happy reading!

Joydip Kanjilal

Joydip Kanjilal is a Principal Software Engineer in Hyderabad, India.

Read my blog

Awarded the prestigious Microsoft Most Valuable Professional (MVP) award in ASP.NET six times in a row from the year 2007 to 2012. A speaker and author of several books and articles with over 18 years of industry experience in IT and more than 14 years in Microsoft .NET and its related technologies.

Currently working as a Principal Software Engineer at DELL International Services at Hyderabad. Was selected as an MSDN Featured Developer of the Fortnight (MSDN) a number of times and also Community Credit Winner at www.community-credit.com several times.

Authored the following books:

·  Entity Framework Tutorial (Second Edition) by Packt Publishing

·  ASP.NET Web API: Build RESTful Web Applications and Services on the .NET Framework by Packt Publishing

·  Visual Studio 2010 and .NET 4 Six-in-One by Wrox Publishers

·  ASP.NET 4.0 Programming by McGraw Hill Publishing

·  Entity Framework Tutorial by Packt Publishing

·  Pro Sync Framework by APRESS

·  Sams Teach Yourself ASP.NET AJAX in 24 Hours by Sams Publishing

·  ASP.NET Data Presentation Controls Essentials by Packt Publishing

Also reviewed more than 10 books and authored more than 350 articles for some of the most reputable sites, such as www.msdn.microsoft.com, www.code-magazine.com, www.asptoday.com, www.devx.com, www.ddj.com, www.aspalliance.com, www.aspnetpro.com, www.sql-server-performance.com, www.sswug.com, and so on.

Has years of experience in designing and architecting solutions for various domains. His technical strengths include C, C++, VC++, Java, C#, Microsoft .NET, AJAX, WCF, JQuery, ASP.NET Web API, REST, SOA, Design Patterns, SQL Server, Operating Systems, and Computer Architecture. Has been exploring Cloud technologies, IoT and Machine learning these days.

Blog: http://www.infoworld.com/blog/microsoft-coder

Website: www.joydipkanjilal.com

Twitter: https://twitter.com/joydipkanjilal

Facebook: https://www.facebook.com/joydipkanjilal

LinkedIn: http://in.linkedin.com/in/joydipkanjilal

BLOG COMMENTS POWERED BY DISQUS

LATEST COMMENTS

Support MC Press Online

$0.00 Raised:
$

Book Reviews

Resource Center

  • SB Profound WC 5536 Have you been wondering about Node.js? Our free Node.js Webinar Series takes you from total beginner to creating a fully-functional IBM i Node.js business application. You can find Part 1 here. In Part 2 of our free Node.js Webinar Series, Brian May teaches you the different tooling options available for writing code, debugging, and using Git for version control. Brian will briefly discuss the different tools available, and demonstrate his preferred setup for Node development on IBM i or any platform. Attend this webinar to learn:

  • SB Profound WP 5539More than ever, there is a demand for IT to deliver innovation. Your IBM i has been an essential part of your business operations for years. However, your organization may struggle to maintain the current system and implement new projects. The thousands of customers we've worked with and surveyed state that expectations regarding the digital footprint and vision of the company are not aligned with the current IT environment.

  • SB HelpSystems ROBOT Generic IBM announced the E1080 servers using the latest Power10 processor in September 2021. The most powerful processor from IBM to date, Power10 is designed to handle the demands of doing business in today’s high-tech atmosphere, including running cloud applications, supporting big data, and managing AI workloads. But what does Power10 mean for your data center? In this recorded webinar, IBMers Dan Sundt and Dylan Boday join IBM Power Champion Tom Huntington for a discussion on why Power10 technology is the right strategic investment if you run IBM i, AIX, or Linux. In this action-packed hour, Tom will share trends from the IBM i and AIX user communities while Dan and Dylan dive into the tech specs for key hardware, including:

  • Magic MarkTRY the one package that solves all your document design and printing challenges on all your platforms. Produce bar code labels, electronic forms, ad hoc reports, and RFID tags – without programming! MarkMagic is the only document design and print solution that combines report writing, WYSIWYG label and forms design, and conditional printing in one integrated product. Make sure your data survives when catastrophe hits. Request your trial now!  Request Now.

  • SB HelpSystems ROBOT GenericForms of ransomware has been around for over 30 years, and with more and more organizations suffering attacks each year, it continues to endure. What has made ransomware such a durable threat and what is the best way to combat it? In order to prevent ransomware, organizations must first understand how it works.

  • SB HelpSystems ROBOT GenericIT security is a top priority for businesses around the world, but most IBM i pros don’t know where to begin—and most cybersecurity experts don’t know IBM i. In this session, Robin Tatam explores the business impact of lax IBM i security, the top vulnerabilities putting IBM i at risk, and the steps you can take to protect your organization. If you’re looking to avoid unexpected downtime or corrupted data, you don’t want to miss this session.

  • SB HelpSystems ROBOT GenericCan you trust all of your users all of the time? A typical end user receives 16 malicious emails each month, but only 17 percent of these phishing campaigns are reported to IT. Once an attack is underway, most organizations won’t discover the breach until six months later. A staggering amount of damage can occur in that time. Despite these risks, 93 percent of organizations are leaving their IBM i systems vulnerable to cybercrime. In this on-demand webinar, IBM i security experts Robin Tatam and Sandi Moore will reveal:

  • FORTRA Disaster protection is vital to every business. Yet, it often consists of patched together procedures that are prone to error. From automatic backups to data encryption to media management, Robot automates the routine (yet often complex) tasks of iSeries backup and recovery, saving you time and money and making the process safer and more reliable. Automate your backups with the Robot Backup and Recovery Solution. Key features include:

  • FORTRAManaging messages on your IBM i can be more than a full-time job if you have to do it manually. Messages need a response and resources must be monitored—often over multiple systems and across platforms. How can you be sure you won’t miss important system events? Automate your message center with the Robot Message Management Solution. Key features include:

  • FORTRAThe thought of printing, distributing, and storing iSeries reports manually may reduce you to tears. Paper and labor costs associated with report generation can spiral out of control. Mountains of paper threaten to swamp your files. Robot automates report bursting, distribution, bundling, and archiving, and offers secure, selective online report viewing. Manage your reports with the Robot Report Management Solution. Key features include:

  • FORTRAFor over 30 years, Robot has been a leader in systems management for IBM i. With batch job creation and scheduling at its core, the Robot Job Scheduling Solution reduces the opportunity for human error and helps you maintain service levels, automating even the biggest, most complex runbooks. Manage your job schedule with the Robot Job Scheduling Solution. Key features include:

  • LANSA Business users want new applications now. Market and regulatory pressures require faster application updates and delivery into production. Your IBM i developers may be approaching retirement, and you see no sure way to fill their positions with experienced developers. In addition, you may be caught between maintaining your existing applications and the uncertainty of moving to something new.

  • LANSAWhen it comes to creating your business applications, there are hundreds of coding platforms and programming languages to choose from. These options range from very complex traditional programming languages to Low-Code platforms where sometimes no traditional coding experience is needed. Download our whitepaper, The Power of Writing Code in a Low-Code Solution, and:

  • LANSASupply Chain is becoming increasingly complex and unpredictable. From raw materials for manufacturing to food supply chains, the journey from source to production to delivery to consumers is marred with inefficiencies, manual processes, shortages, recalls, counterfeits, and scandals. In this webinar, we discuss how:

  • The MC Resource Centers bring you the widest selection of white papers, trial software, and on-demand webcasts for you to choose from. >> Review the list of White Papers, Trial Software or On-Demand Webcast at the MC Press Resource Center. >> Add the items to yru Cart and complet he checkout process and submit

  • Profound Logic Have you been wondering about Node.js? Our free Node.js Webinar Series takes you from total beginner to creating a fully-functional IBM i Node.js business application.

  • SB Profound WC 5536Join us for this hour-long webcast that will explore:

  • Fortra IT managers hoping to find new IBM i talent are discovering that the pool of experienced RPG programmers and operators or administrators with intimate knowledge of the operating system and the applications that run on it is small. This begs the question: How will you manage the platform that supports such a big part of your business? This guide offers strategies and software suggestions to help you plan IT staffing and resources and smooth the transition after your AS/400 talent retires. Read on to learn: