Search code examples
tfsvisual-studio-2017commit

How to fix "storage.ide-shm is being used by another process", which prevents me from committing


In my visual studio solution with TFS, I try to commit the changes I made but I get the error message below all the time.

I don't have enough reputation to put an image (https://i.sstatic.net/WpumG.png)

Translation of the message : The process cannot access the file'C:\Users\SESA474351\Source\Workspaces\Kiosk\eKiosk - DEVELOPMENT. vs\Kiosk Solution\v15\Server\sqlite3\storage.ide-shm', because it is being used by another process

I tried to delete all my projects locally and recover them. I tried to run visual studio as an administrator. I tried to cancel all the pending changes. Nothing worked

When I click on archive, my code is supposed to be committed in TFS but it doesn't work, do you have any idea?

Thank you!


Solution

  • You have to ensure that you're not checking in files and folders that you don't need (i.e. bin, obj, and .vs folders). To exclude such things, you should use a .tfignore file if you're using TFVC or a .gitignore file if you're using git.

    To try and solve your immediate problem, close down you Visual Studio and then delete the .vs folder. If that also complains about being used by another process, try to reboot first and then delete the folder and load the solution again and then see if you can commit.