How do I solve error message "an error occurred registering this project with source control" when loading a project retrieved from a TFS server?

Please open the *.csproj file of your project then replace the following tags:

<SccProjectName>SAK</SccProjectName>
<SccLocalPath>SAK</SccLocalPath>
<SccAuxPath>SAK</SccAuxPath>
<SccProvider>SAK</SccProvider>

With

<SccProjectName>
</SccProjectName>
<SccLocalPath>
</SccLocalPath>
<SccAuxPath>
</SccAuxPath>
<SccProvider>
</SccProvider>

Close the solution, close VS, reopen VS and then your problem will be resolved.


The problem is with the *.csproj.user and if you have source control with the *.csproj.vspscc (in VS2012). Delete both, close the solution, close VS, reopen VS using the Run As (preferably administrator) and it should be fine.


I would try with removing the previous source control bindings in the .csproj file and then (re-)bind it using File->Source Control->Change Source Control...