HiveBrain v1.2.0
Get Started
← Back to all entries
debugModerate

SSMS 2014 Gives an exception when opening the new query window

Submitted by: @import:stackexchange-dba··
0
Viewed 0 times
thessmsnewexceptionopeningquerygiveswhenwindow2014

Problem

I have an installation of SQL Server 2014 on a server on the LAN and on my PC I have SQL Server Management Studio 2014 for few months already. Out of no where when I open SSMS I get

The type initializer for 'system.windows.media.fonts' threw an exception

I have no clue of what might have caused this exception. I tried re-installing SSMS 2014, removing all SQL components on my PC and re-installing SSMS again, I even removed .NET 4.7 (Because I have VS 2017 as well). What is the cause for this exception and how to resolve it?

Solution

This issue has been posted as a Microsoft Connect item.

2012 SSMS System.Windows.Media.Fonts Exception On New Query

A possible workaround was posted by the author as follows:


I have found that if change the font for the "Text Editor" from the default of "Consolas" to something else (e.g. Lucida Console), this problem goes away.

Context

StackExchange Database Administrators Q#195919, answer score: 11

Revisions (0)

No revisions yet.