After I installed IntelliJ IDEA (Jetbrains) and JDK 1.8.0_102 my Visual Studio isn't able to open .cs Files with my user account. It always show the error message "The document cannot be opened. It has been renamed, deleted or moved.". On rightclick -> "open with" -> "Editor" the file opens in notepad - so there is no security issue.
After I delete any.cs file and undo my pending changes, I can open each .cs file without any problem - but only in the current visual studio session. After reastart VS the problem occurs again.
When I start Visual Studio with another user, there is no such problem!
I tried to repair Visual Studio, I tried to uninstall and reinstall Visual Studio and I also tried the VisualStudioUninstaller (which remove all settings in AppData folder) and reinstall Visual Studio again but nothing helps.
I would be very grateful for any ideas.
Edit:
I also tried the flags to reset user settings /ResetSettings and /ResetUserData
When I start with /Save Mode the error message change to "The system cannot find the file specified. (Exception from HRESULT:0x80070002)".
My solution was to delete the local user profile. After that, Visual Studio works fine again.
User contributions licensed under CC BY-SA 3.0