Error updating Visual Studio 2015 3 version when opening solution (Typescript)

I upgraded to Visual Studio 2015 Update 3 this morning and in my main web solution. Now I get the following warning when I open it. I also get this warning when I open typescript files, and I can no longer comment and uncomment the code through a shortcut or toolbar. I also no longer have IntelliSense, etc.

vs2015u3exception

The XML file says the following:

<entry> <record>851</record> <time>2016/07/04 11:40:28.893</time> <type>Error</type> <source>VisualStudio</source> <description>LegacySitePackage failed for package [Microsoft.VisualStudio.LanguageServices.TypeScript.TypeScriptPackage, Microsoft.VisualStudio.LanguageServices.TypeScript, Version=14.0.0.0, Culture=neutral]Source: &apos;Microsoft.VisualStudio.LanguageServices.TypeScript&apos; Description: Field not found: &apos;Microsoft.CodeAnalysis.Shared.Options.ServiceFeatureOnOffOptions.ClosedFileDiagnostic&apos;.&#x000D;&#x000A;System.MissingFieldException: Field not found: &apos;Microsoft.CodeAnalysis.Shared.Options.ServiceFeatureOnOffOptions.ClosedFileDiagnostic&apos;.&#x000D;&#x000A; at Microsoft.VisualStudio.LanguageServices.TypeScript.TypeScriptPackage.Initialize()&#x000D;&#x000A; at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsPackage.SetSite(IServiceProvider sp)</description> <guid>{2FFE45C4-5C73-493C-B187-F2E955FF875E}</guid> <hr>80131511</hr> <errorinfo></errorinfo> </entry> <entry> <record>852</record> <time>2016/07/04 11:40:28.895</time> <type>Error</type> <source>VisualStudio</source> <description>SetSite failed for package [Microsoft.VisualStudio.LanguageServices.TypeScript.TypeScriptPackage, Microsoft.VisualStudio.LanguageServices.TypeScript, Version=14.0.0.0, Culture=neutral](null)</description> <guid>{2FFE45C4-5C73-493C-B187-F2E955FF875E}</guid> <hr>80131511</hr> <errorinfo></errorinfo> </entry> <entry> 

What I tried:

  • Recovery Update 3
  • Reinstalling typescript and uninstalling the old versions that I installed: https://www.microsoft.com/en-us/download/details.aspx?id=48593
  • devenv.exe / updateconfiguration and devenv.exe / clearcache
  • Removing% localappdata% \ Microsoft \ VisualStudio \ 14.0 \ ComponentModelCache
  • Updating the typescript project version to version 1.8
  • Setting the environment variable of the typescript path to 1.8 instead of 1.0

So, now my Visual Studio tells me that I have typescript version 1.8.30 installed. enter image description here But in my programs and functions I only have version 1.8.6.0 installed (which is the latest). programsandfeaturestypescript

The only thing left to do is reinstall Visual Studio yourself.

Any ideas, suggestions? Thanks!

+6
source share
4 answers

I solved this:

  • uninstall Visual Studio with Visual Studio Uninstaller created by Microsoft.
  • removed all remaining typescript installations (in the Add or Remove Programs application)
  • deleted typescript SDK in C: \ Program Files (x86) \ Microsoft SDKs \ TypeScript
  • running CCleaner (Cleaner and Registry)

Hope this helps someone!

+3
source

If you DO NOT want to follow the last route, doing a complete destruction of all things-VS, try this instead:

  • remove existing typescript settings (in the "Add / Remove as usual" section)
  • install another version
  • Try to open the application that gave you an error.

If the error persists, return to step 1 and install a different version (up or down in the groove)

If the error has disappeared, QUIT !!!

Unfortunately, for me this meant installing 2.0.2 BETA instead of 2.0.3 - I don’t know why they jump like them, but 1.8.4 caused an error, 2.0.3 caused an error, but 2.0.2 not, 2.0.2 Available only in beta.

This is a stop. I may have to deal with some unintended side effects or end up doing a full reinstall later, but so far so good, and it only took a few minutes of trial and error. I recommend starting with 2.0.2 beta if you aren’t more disgusted with me because it still works like a charm and I just update when 2.0.4 comes out or something else.

+2
source

For everyone who saw this after installing typescript 2.0.0, I just had to

  • removed all remaining typescript installations (in the Add or Remove Programs application)
  • deleted typescript SDK in C: \ Program Files (x86) \ Microsoft SDKs \ TypeScript

and restart the visual studio, then the error disappeared.

+1
source

I know that this solved the problem, but the answers here did not do the trick for me, this solved my problem.

Somehow you finished installing VS without the full version, our update installer 3 (msi above: http://go.microsoft.com/fwlink/?LinkID=808016 ), and instead got an older version depending on the feed you are using / settings. After that, either VS automatically updates the extension part of the tools from the gallery (or you manually updated from the gallery), which does not include the full version of our tools, only part of the extension. Part of the extension depends on the interface assembly that was normally installed in the VS installer during installation.

Try running the full msi installer from the link above. this should update the interface assembly that has not previously been updated.

Source: https://social.msdn.microsoft.com/Forums/office/en-US/94dbabd8-ed24-48f4-a56b-cda702574207/visual-studio-2015-appinsights-error-messages?forum=ApplicationInsights

+1
source

All Articles