"Object reference not set to an instance of an object" while accessing Active Directory information from TFS Source Control Explorer
This article provides help to solve an error that occurs when you access Active Directory information from Team Foundation Server Source Control Explorer.
Applies to: Windows Server 2012 R2
Original KB number: 957969
Rapid publishing
Rapid publishing articles provide information directly from within the Microsoft support organization. The information contained herein is created in response to emerging or unique topics, or is intended supplement other knowledge base information.
Action
Create a Windows group in Active Directory (AD), and assign AD users to the group, then...
- Open Visual Studio as a TFS Administrator
- Open Source Control Explorer
- Right-click on a version control folder and select Properties
- Click the Security tab on the Properties dialog
- Select the Windows User or Group option and click the Add button
- Browse for the AD group; and attempt to add the group
Result
Error: Object reference not set to an instance of an object.
Cause
This issue is caused by a bug in the version control permission dialog window in Visual Studio 2008\ Team Explorer 2008.
Resolution
This problem is resolved in Visual Studio 2008 SP1. If you are using Visual Studio 2008 RTM, there are two workarounds:
Assign version control permissions with command-line tool: tf.exe
You can enter
tf perm /?
or review the MSDN documentation for this command TF Permission command for more information about how to assign version control permissions from command line.Explicitly make the AD group in question a valid TFS identity:
- Create a new user group on the server.
- Add the AD group in question to this group.
- You should now be able to assign version control permissions to the AD group.
Disclaimer
Microsoft and/or its suppliers make no representations or warranties about the suitability, reliability, or accuracy of the information contained in the documents and related graphics published on this website (the "materials") for any purpose. The materials may include technical inaccuracies or typographical errors and may be revised at any time without notice.
To the maximum extent permitted by applicable law, Microsoft and/or its suppliers disclaim and exclude all representations, warranties, and conditions whether express, implied or statutory, including but not limited to representations, warranties, or conditions of title, non infringement, satisfactory condition or quality, merchantability and fitness for a particular purpose, with respect to the materials.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for