PoorMansTSqlFormatter icon indicating copy to clipboard operation
PoorMansTSqlFormatter copied to clipboard

error when opening ssms after install

Open rudvfaden opened this issue 6 years ago • 6 comments

I get the following error when i install the extension.

billede

I am using ssms 18.4

The error from the log is this

CreateInstance failed for package [FormatterPackage]Source: &apos;mscorlib&apos; Description: Filen eller assemblyen &apos;Microsoft.VisualStudio.Shell.12.0, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos; eller en af dens afh&#x00E6;ngigheder kunne ikke indl&#x00E6;ses. Den angivne fil blev ikke fundet.&#x000D;&#x000A;System.IO.FileNotFoundException: Filen eller assemblyen &apos;Microsoft.VisualStudio.Shell.12.0, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos; eller en af dens afh&#x00E6;ngigheder kunne ikke indl&#x00E6;ses. Den angivne fil blev ikke fundet.&#x000D;&#x000A;File name: &apos;Microsoft.VisualStudio.Shell.12.0, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos;&#x000D;&#x000A; at System.Reflection.RuntimeAssembly.GetType(RuntimeAssembly assembly, String name, Boolean throwOnError, Boolean ignoreCase, ObjectHandleOnStack type)&#x000D;&#x000A; at System.Reflection.RuntimeAssembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase)&#x000D;&#x000A; at System.Activator.CreateInstanceFromInternal(String assemblyFile, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo)&#x000D;&#x000A; at System.AppDomain.CreateInstanceFrom(String assemblyFile, String typeName)&#x000D;&#x000A;&#x000D;&#x000A;WRN: Logf&#x00F8;ring af assemblybinding er deaktiveret.&#x000D;&#x000A;Logf&#x00F8;ring af assemblybindingsfejl aktiveres ved at angive registreringsdatabasev&#x00E6;rdien [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) til 1.&#x000D;&#x000A;Bem&#x00E6;rk! Ydeevnen forringes ved logf&#x00F8;ring af assemblybindingsfejl.&#x000D;&#x000A;Denne funktion deaktiveres ved at fjerne registreringsdatabasev&#x00E6;rdien [HKLM\Software\Microsoft\Fusion!EnableLog].&#x000D;&#x000A;</

rudvfaden avatar Mar 18 '20 08:03 rudvfaden

facing the same issue. Do not know how to resolve it. Using SSMS 18.5.

anand984 avatar Apr 16 '20 00:04 anand984

Probably a duplicate of issue #234. The solution is to install Visual Studio 2015 Isolated Shell. https://aka.ms/VS2015/IsoShell/en-US

WyattBest avatar May 12 '20 21:05 WyattBest

@WyattBest your solution worked for me,thanks

Kcrafting avatar May 14 '20 02:05 Kcrafting

@WyattBest Works for me too, thanks.

Visor57 avatar Aug 04 '20 11:08 Visor57

@WyattBest, works for me too!

MiguelCecilio avatar Sep 17 '20 13:09 MiguelCecilio

@WyattBest Thanks! This works.

hyspacex avatar Dec 16 '20 17:12 hyspacex