Thursday, April 19, 2018

SQL Server Management Studio Font Error : SSMS Cannot create an editor

When trying to run a query or open ssms, you receive this error, related to fonts:

Screenshot_2

Error Desc:

Object reference not set to an instance of an object. (Microsoft.VisualStudio.Editor.Implementation) ------------------------------ Program Location: at Microsoft.VisualStudio.Editor.Implementation.VsTextViewAdapter.SetScrollPosition(Int32 iBar, Int32 iFirstVisibleUnit)


To Resolve:

Solution 1 - Run Fixit tool for KB4074906

Microsoft has released a Fixit tool for KB4074906, available on Windows Update, WSUS, Microsoft Update Catalog, and as a direct download.

and/or
Solution 2 - Replace GlobalUserInterface.CompositeFont Manually

Manually replace corrupted font file with correct version.

  1. Download GlobalUserInterface.CompositeFont (default download for Windows 7 is %USERPROFILE%\Downloads).
  2. Launch cmd as Administrator and navigate to %windir%\Microsoft.NET\Framework\v4.0.30319\WPF\Fonts and run:
    xcopy /y %USERPROFILE%\Downloads\GlobalUserInterface.CompositeFont .
    (or copy and paste the GlobalUserInterface.Composite file through Windows Explorer to %windir%\Microsoft.NET\Framework\v4.0.30319\WPF\Fonts)
  3. Re-launch WPF application.
  4. Reboot machine and re-launch application if you still have trouble.

No comments:

Post a Comment