Constantly get The local data store is currently in use by another operation when working on small projects

后端 未结 9 1880
灰色年华
灰色年华 2021-02-01 01:08

I use Visual Studio Team Services to store the source code of my projects as I work on them, I love the service, especially that it is free, but I have been running into the big

相关标签:
9条回答
  • 2021-02-01 01:29

    I found the error would be triggered when I had more than once instance of VS 2012+ running utilizing Source Control Explorer, Solution Explorer and/or Team Explorer windows. I've not had this problem when running a single instance of VS 2012+ (on updates 2+) utilizing Source Control Explorer, Solution Explorer and/or Team Explorer windows in tandem.

    I found this article and gave it's suggestion a shot: to prevent multiple threads from accessing the data store simultaneously. http://blogs.msdn.com/b/phkelley/archive/2013/05/31/tf400030-the-local-data-store-is-currently-in-use-by-another-operation.aspx

    This proved to be a remedy for this issue.

    I would add for other users with large file repositories, using source control and share this issue, it may be greatly beneficial to create multiple workspaces for each of your branches/repositories. I found that by doing this my queries to TFS sped up immensely and also helped with this error. I found this suggestion here: http://blogs.msdn.com/b/phkelley/archive/2013/05/30/using-multiple-workspaces-with-visual-studio.aspx. I share this as users mention TFS running slowly.

    0 讨论(0)
  • 2021-02-01 01:29

    I also started getting the same error this week. Maybe there's something wrong with VS Update 3?
    Simply could not work on any of the projects of the "broken" local workspace anymore.
    VS would show all files as being checked out, but none were really.
    Other local workspaces were working fine.

    I tried removing a project from the workspace, but when trying to confirm it, I would receive the same TF400030 error again.

    Suggestion

    If nothing else works, you might want to try this: simply delete the whole workspace and create it again, this time separating projects into different workspaces. This worked for me.

    You'll probably want to back up your files first.

    0 讨论(0)
  • 2021-02-01 01:29

    Restarting the Visual studio resolved the issue for me.

    0 讨论(0)
  • 2021-02-01 01:33

    I ran into this error when renaming my workspace. After changing back to original everything worked fine again

    0 讨论(0)
  • 2021-02-01 01:39

    Ran into this issue as well on VS 2013 and TFS - every time I opened my team explorer it would take 10+ seconds to show all projects, then when I would expand the project in source control, another 10+ seconds would roll by.

    Earlier today I began to experience the "local storage is being used" error when trying to save data in class files. I did some original research, and this following link saved the day for sure. Now TFS is blazing!

    Local Data Store Solved

    What you do is edit workspace (including all projects associated), and change the "Location" dropdown from "Local" to "Server". It took about 4-5 minutes for the changes to finish, but well worth it.

    Hopefully this will help someone down the road.

    0 讨论(0)
  • 2021-02-01 01:39

    In my case the cause was a compressed folder containing my local data store, shown in blue in Windows explorer. Removing the compression did the trick.

    0 讨论(0)
提交回复
热议问题