Unable to check out the current file

Complete error message: The file may be locked, or you may need to check out the file manually.

This error arises when a change is made to a file that is currently checked in to source-code control. Usually, Visual Studio presents the file checkout dialog box so that the user can check out the file. This time, the file was unable to be checked out, perhaps because of a merge conflict during checkout.

To correct this error

  • Ensure that the file is not locked, and then try to check out the file manually.