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: The following Web service returned an response that is not valid: https://<Central admin site>/_vti_bin/TeamFoundationIntegrationService.asmx. This Web service is used for the Team Foundation Server Extensions for SharePoint Products. Either the extensions are not installed, the request resulted in HTML being returned, or there is a problem with the URL. Verify that the following URL points to a valid SharePoint Web application and that the application is available: https://<Central admin site>. If the URL is correct and the Web application is operating normally, verify that a firewall is not blocking access to the Web application.

After this exception, you might still see that the configuration wizard completes successfully, but when you proceed with the rest of the integration steps you might get into a situation where the "Grant access" option is not available any more, inside the "Team Foundation Server administration console" under the "Extensions for SharePoint products" node.

Cause:

In one such scenario, the web.config for the SharePoint central admin site was configured with a customized setting for <sessionState /> element. The "cookieless" parameter was set to "AutoDetect"

Changing the value from "Autodetect" to "UseCookies" resolves the issue.

Eg: The sessionState element was initially found as below

<sessionState mode="InProc" timeout="20" cookieless="AutoDetect" />

Then modified to

<sessionState mode="InProc" timeout="20" cookieless="UseCookies" />

Steps to resolve the issue:

1) Launch Internet Information services Manager on the SharePoint server and navigate to the "Web sites" node

2) Right click on the "SharePoint central Administration Vx" web site. (x value might be 3 or 4 depending on the version of SharePoint used

3) From the context menu, select "Explore". The windows explorer launches with the list of folder and files.

4) Locate the Web.config file and open it in Notepad.

5) Search through the file for sessionState.

6) Once you identified the sessionState element, check the value assigned for the parameter "cookieless"

7) If the value assigned was "Autodetect", change it to "UseCookies" and save and close the web.config file.

8) Launch the Team Foundation server administration console and navigate to the "Extensions for SharePoint services" node, the 'Grant Access' option should be visible.

References:

For reference on Cookieless parameter, visit: https://msdn.microsoft.com/en-us/library/aa479314.aspx

Note:

This exception can occur during a Team Project collection creation as well. While the exception message slightly differs from the above, the exception will be:

TF252031: A SharePoint site could not be created for the team project collection. The Following error occurred: TF249064: The following Web service returned an response that is not valid: https://<Central admin site>/_vti_bin/TeamFoundationIntegrationService.asmx. This Web service is used for the Team Foundation Server Extensions for SharePoint Products. Either the extensions are not installed, the request resulted in HTML being returned, or there is a problem with the URL. Verify that the following URL points to a valid SharePoint Web application and that the application is available: https://<Central admin site>. If the URL is correct and the Web application is operating normally, verify that a firewall is not blocking access to the Web application.

The workaround is the same as mentioned in the "Steps to resolve the issue" section. However, this issue does not affect a team project creation or accessing an existing team project portal site.

Content developed by: Arunrama

Content reviewed by: Lakhminder Singh