TFS 2010: Error - TF249064, while configuring "Extensions for SharePoint products"

To integrate a remote instance of SharePoint with TFS 2010, one of the requirements is to install and run the configuration wizard for the “Extension for SharePoint products” on the SharePoint instance that hosts the web application for the TFS project portal. While running the configuration wizard, you might come across the following exception: TF249064:…