In the hope that this could narrow the case / help someone, I took an investigative approach. For me, I first moved the folder to the C: \ Users \ {user} \ AppData \ Local \ Microsoft \ VisualStudio folder in My Documents and allowed Visual Studio to recreate it by restarting it. This fixed the bugs. So I moved everything back one by one and restarted Visual Studio each time until I found the criminals. These folders were in order to go back:
- 1033 (overwriting the auto-generated copy with the old one)
- Designer (was in my old copy, not originally re-created when VS was restarted, copied it back)
- Extensions (overwritten the auto-generated copy with the old one)
- ImageLibrary (automatically generated copy is overwritten with the old one)
- Notifications (overwriting an automatically generated copy with the old one)
- STemplate (was in my old copy, but was not originally created when VS was restarted, copied it back)
- VTC (was in my old copy, not originally re-created when VS was restarted, copied it back)
These files were good to return to / overwrite automatically generated:
- ApplicationPrivateSettings (was in my old copy, but was not originally created when VS was restarted)
- ApplicationPrivateSettings.lock (overwrites the auto-generated copy with the old one)
- vspdmc.lock (automatically generated copy is overwritten with the old one)
These files were in order to go back. Each of them was in my old copy and was not originally created when VS was restarted:
- .NETFramework, Version = v4.0, Set = Framework, Hash = C958D412.dat
- .NETFramework, Version = v4.0, Set = RecentAssemblies, Hash = 0.dat
- .NETFramework, Version = v4.5, Set = Extensions, Hash = 75EAE334.dat
- .NETFramework, Version = v4.5, Set = Extensions, Hash = 497525A2.dat
- .NETFramework, Version = v4.5, Set = Framework, Hash = 5AE9A175.dat
- .NETFramework, Version = v4.5.2, Set = Extensions, Hash = 24CEEB0D.dat
- .NETFramework, Version = v4.5.2, Set = Extensions, Hash = 72AE305.dat
- .NETFramework, Version = v4.5.2, Set = Extensions, Hash = ADF899D7.dat
- .NETFramework, Version = v4.5.2, Set = Framework, Hash = D8E943A2.dat
This caused problems - delete these files and restart VS so that they can recreate them:
- ComponentModelCache - when I rewrote the contents of this folder with my old ones (4 files: MS.VS.Default.cache, .catalogs, .err, .external), it gave me all the errors that I received earlier about not being able to download packages at boot time of my project and the error "reference to an object not installed on an instance of the object" when trying to close VS.
- devenv.exe.config - same as ComponentModelCache
- .NETFramework, Version = v4.0, Set = Extensions, Hash = 6D09DECC.dat - causes an error from the JavaScript language service, complaining about the lack of js files
- .NETFramework, Version = v4.0, Set = Extensions, Hash = 9951BC03.dat - causes an error from the JavaScript language service complaining about missing js files.
- .NETFramework, Version = v4.5.2, Set = RecentAssemblies, Hash = 0.dat - causes an error from the JavaScript language service complaining about missing js files
These are errors from the latest .NETFramework files (which I don’t get unless I add them back):
01:10:11.7550: Referenced file 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\JavaScript\References\libhelp.js' not found. 01:10:11.7550: Referenced file 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\JavaScript\References\sitetypesWeb.js' not found. 01:10:11.7550: Referenced file 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\JavaScript\References\domWeb.js' not found. 01:10:11.7550: Referenced file 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\JavaScript\References\underscorefilter.js' not found. 01:10:11.7550: Referenced file 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\JavaScript\References\showPlainComments.js' not found.
I just need to reinstall / restore the JavaScript Language Service plugin, so it may not be related. But definitely devenv.exe.config and ComponentModelCache need to fix the error "object reference not installed on the object instance".
vapcguy Jul 14 '16 at 17:58 2016-07-14 17:58
source share