2

I have a solution which was connected with TFS. Whenever I try to install new library in the solution, I get an error:

Unauthorised (410)

I have tried to delete all TFS-related files from solution, but I'm still getting that same error.

Has anyone faced the same issue and resolved it somehow?

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Babasaheb
  • 41
  • 1
  • 9

3 Answers3

6

Verified solution

SOLUTION 1

For permanently and completely detach the solution from source control, Do the following steps:

  1. Click the 'No' button to avoid connecting to TFS.
  2. In the file menu, go to the source control options and clear the bindings. You'll specifically want File menu - Source Control - Advanced - Change Source Control...
  3. Save the solution.

Next time you open the solution you won't be prompted to connect to TFS.

SOLUTION 2

To completely remove TFS source control binding follow these two steps:

  1. Go to your solution's folder, find and delete all files with *.vssscc and *.vspscc extensions.
  2. Open your solution's .sln file in Notepad, and find & remove the GlobalSection(TeamFoundationVersionControl) section.

Reference Link

From: Remove TFS Connection From Solution

0

Afaik, errors starting with 4XX is caused by wrong credentials. With that perspective, you can try disconnect from the server then reconnect via from Team->Disconnect from server

Also unbind the project and bind again; File->Source Control->Advanced->Change Source Control

Hope, it helps.

MonkeyDLuffy
  • 556
  • 7
  • 17
0

Make sure you have deleted all related files locally. To completely remove TFS source control binding follow these two steps:

  1. Go to your solution's folder, find and delete all files with *.vssscc and *.vspscc extensions.
  2. Open your solution's .sln file in Notepad, and find & remove the GlobalSection(TeamFoundationVersionControl) section.

GlobalSection(TeamFoundationVersionControl) = preSolution <code> SccNumberOfProjects = 2 SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C} SccTeamFoundationServer = <YourTFSURL> SccLocalPath0 = . SccProjectUniqueName1 = . SccLocalPath1 = . EndGlobalSection

More detail steps please take a look at this blog here: Reference Link .

If you still get issue, also close VS, clear TFS and VS cache. Then open VS again, which may do the trick.

PatrickLu-MSFT
  • 49,478
  • 5
  • 35
  • 62