kpr
kpr

Reputation: 451

TFS2012 : The calling thread cannot access this object because a different thread owns it

I am using TFS2012 as source control with VS2012.

When I checkin any file which is checked-out , output window shows this error:


ProfileController.cs has been automatically checked out for editing. The calling thread cannot access this object because a different thread owns it. The calling thread cannot access this object because a different thread owns it.


Tried to resolve this(restarted VS2012) and also deleted the server Work-space and recreated again, but the problem is still same.

Any file I checkout in source-control from solution-explorer, does same behavior.

Any help?

Upvotes: 3

Views: 6113

Answers (2)

Gene Cotton
Gene Cotton

Reputation: 11

I get this error with VS 2012 when I try to check in files. To get around it, I open VS, then immediately go under "Team" and select "Connect to Team Foundation Server..." BEFORE I open any solutions. Then any solutions I open and work on can be checked in without this error appearing.

Upvotes: 1

voltar99
voltar99

Reputation: 71

I had the same problem, disconnecting and re-connecting to the TFS2012 Service solved it

Upvotes: 7

Related Questions