问题描述
Hello all,
Hello all,
使用Windows 7调用Fonts.SystemFontFamilies(System.Windows.Media.Fonts)时,我的客户端程序(C#)中遇到异常system:
I have encountered an exception in our client program (C#) when calling Fonts.SystemFontFamilies (System.Windows.Media.Fonts) using a Windows 7 system:
- > System.IO.FileFormatException:在FontFamilyCollection中找不到与当前操作系统或更高版本匹配的FontFamily元素:Windows7SP1
-> System.IO.FileFormatException: No FontFamily element found in FontFamilyCollection that matches current OS or greater: Windows7SP1
使用Windows 10时,不会发生此问题。此外,回滚Windows 7系统上的最新安全更新修复了该错误,因此经过一些调查后,我认为连接到该异常的最可能的包是KB4055532,其中
是.NET 4.7.1安全性1月9日发布的Windows 7 / Server 2008更新。
Using Windows 10, this problem does not occur. Also, rolling back the latest security updates on the Windows 7 systems fixes that error, so after some investigation, I think the most probable package that is connected to that exception is KB4055532, which is a .NET 4.7.1 security update for Windows 7 / Server 2008 released on January 9th.
这可能是上述安全更新中的错误吗?
Could that be a bug in the mentioned security update?
亲切的问候,
Frank Nanninga
Frank Nanninga
推荐答案
我可以或多或少地确认您的观察结果!
I can more or less confirm your observation!
安装KB4055532后,Windows Powershell 5.1 ISE无法启动,因为它崩溃了 ; System.IO.FileFormatException也是如此。这是在Windows 7 SP1上安装了所有重要更新。
卸载此更新后,可以毫无问题地启动Powershell 5.1 ISE。
我遇到同样的问题昨天上班的8台电脑和家里的个人电脑。
亲切的问候,
Patrik Ehringer
After installing KB4055532 Windows Powershell 5.1 ISE cannot be started as it crashes with System.IO.FileFormatException too. This is on Windows 7 SP1 with all important updates installed.
When this update is uninstalled, Powershell 5.1 ISE can be started without problems.
I had this same problem on about 8 computers yesterday at work and at my personal computer at home.
Kind regards,
Patrik Ehringer
这篇关于安装.NET Framework Update后,CompositeFontParser失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!