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

visual-studio-2012

Solution

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

Problem

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?

Original source