22

I had the same problem with “Docfile corruption” error after upgrading to 17.2. preview 2.1 today. I could not build, load files or even close VS without forcefully ending VS process in task manager.

Message Box Error | Click for Show Full Size Imgae

Here is what fixed it for me without having to downgrade…

  1. Delete all .vs folders (Hidden Folder) from the solution
  2. Delete all files in
  3. Re-open project/solution and all working again.

Message Box Error | Click for Show Full Size Imgae

Hope this saves someone from losing a few hours on this.

3 Answers3

29

Its working for me. Thank you

(the docfile has been corrupted 0x80030109 visual studio 2022 error solution)

Delete all .vs folders (Hidden Folder) from the solution

Code For All
  • 306
  • 3
  • 2
0

Close the solution and just delete the hidden .vs folder and start again.

aas
  • 197
  • 4
  • 17
0

Deleted the .vs files Restarted my computer three times Deleted the newly created .vs files

So far nothing has worked im still getting: docfile has been corrupted 0x80030109 error.

I do have a full back up from a day or so back and all my code is updated in git 2 to 3 times a day so am considering a rollback and restore from backup and then a fresh git pull but id like to know the root cause so i can prevent this from happening again. Anyone have any other suggestions besides deleting the hidden .vs files?