Search Wiki:
Article Translations
English, Français, Deutsch, Italiano, 한국어, 繁體中文, 简体中文, 日本語, Русский, Português (Brasil)


A Hotfix is a product update package with one or more updated product files that fix a specific product problem.

Please be aware this Hotfix has not gone through full Microsoft product regression testing nor has it been tested in combination with other Hotfixes.
Please carefully review the associated Hotfix KB article to verify the fix is the one needed and there are no known compatibility or installation issues. You may also want to contact a Microsoft Support Professional at

Issue Description

Error message when you try to add files to SCC: Unhandled exception has occurred in a component in your application"


When you try to add files to Source Code Control (SCC) on a computer that has Microsoft Visual Studio 2008 Team Foundation Server Service Pack 1 (SP1) installed, you receive the following exception message:

Unhandled exception has occurred in a component in your application. If you click Continue, the application will ignore this error and attempt to continue.
InvalidArgument=Value of '-1' is not valid for 'index'.
Parameter name: index

This problem occurs when you try to add files by using one of the following methods:
By using the Source Control Explorer shortcut menu
By clicking the Add Items to Folder toolbar button


You must have Team Explorer SP1 installed to apply this hotfix.

Additional Information about the issue resolved by this Hotfix can be found in its Knowledge Base article at

Additional Hotfixes
Search the list of all other publicly available Visual Studio and .NET Framework Hotfixes at*
Last edited Jan 14 2009 at 12:42 AM  by DDHotfix, version 5
Page view tracker