I'm using Visual Studio 2013 with NuGet Package Manager 2.8.50926.663 (2015-01-24). If I try to list NuGet package updates from within VS2013, VS2013 just hangs due to an unexpected response from the TeamCity NuGet feed. The issue does not happen to all my solutions, but to some of them. I have several colleauges who experience the same issue.
1) Navigate to Tools -> Nuget Package Manager -> Manage NuGet packages for solution.
2) In the left-hand menu, select "Updates"
3) Select the TeamCity nuget feed
Now Visual Studio will show "Retrieving information..." with a progress bar which never completes.
The issue seems to be caused by the fact that Visual Studio/NuGet client performs a OData Batch Request using HTTP POST, which does not seem to be supported by TeamCity. When Visual Studio performs a HTTP GET, it seems to work as it should. I am not sure, but I suspect NuGet switches over to a OData Batch Request-mode when the number of nuget packages exceeds a specific threshold.
The TeamCity server responds with "HTTP Status 406 - TeamCity provided feed is readonly." which is a bit odd, because the incoming request does not attempt to modify data - the incoming request contains a single wrapped HTTP GET request.
We're using TeamCity 9.1. I'm aware that there's a newer version (9.1.1) but the release notes does not include any mentioning of addressing this issue.
I've attached the HTTP Request & HTTP Respose.
Is this a bug in TeamCity?