Extensions experiencing - Hang - Does not load - HTTP 401s in browser console on upgraded TFS server



SymptomQuestionBubble_64x

You may be experiencing authentication issues with extensions running in an on-prem Team Foundation Server (TFS), upgraded from any TFS to TFS 2015 Update 2/3, TFS 2017 RC, or TFS 2017 Update 1 RC. When you try to access an extension point, you may experience a “hanging” extension or a HTTP 401 error in the browser console window, as shown below. The issue affects all users on the TFS instance.

SNAGHTML75c838

Cause

Your upgraded environment may be missing an anonymous endpoint.

To confirm, run the following SQL query against your TFS Configuration database:

SELECT * FROM tbl_RegistryItems WHERE PartitionId = 1 AND ChildItem = 'PublicMVC\'

If it does not return any rows, your server configuration is in a bad state and this post is applicable to you.

Resolution

Update to TFS 2017 Update 1 RC2 or higher when available, or update your TFS Configuration database as outlined below.

WARNING

Serious problems might occur if you modify the configuration incorrectly by modifying the database or by using another method. These problems might require that you reinstall your Team Foundation Server. Microsoft cannot guarantee that these problems can be solved. Modify the configuration at your own risk.

Run the SQL:

EXEC prc_SetRegistryValue 1, '#\Configuration\Metabase\Shared\PublicMVC\' , 'ApplicationRelativePath=/_public;RequiredAuthentication=1;AllowedHandlers=8'

Re-run the following SQL query against your TFS Configuration database to confirm that the the PublicMVC entry has been added.

SELECT * FROM tbl_RegistryItems WHERE PartitionId = 1 AND ChildItem = 'PublicMVC\'

Reload your browser and verify that your extension is now functioning correctly.

For additional information on troubleshooting 401 errors, see the following article in the Microsoft Knowledge Base: 907273 Troubleshooting HTTP 401 errors in IIS

Applies to

Team Foundation Server 2015 Update 2

Team Foundation Server 2015 Update 3

Team Foundation Server 2017 RC

Team Foundation Server 2017 Update 1 RC1

Visual Studio Team Services Extensions are not supported on Team Foundation Server 2015 Update 1 or older

Also see

Extensions experiencing – Hang – Does not load – HTTP 401s in browser console

Comments (0)

Skip to main content