-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.NET Framework January 2018 Rollup Known Issue KB4074906 - "TypeInitializationException" or "FileFormatException" error in WPF applications #599
Comments
I added a Workaround 3 with a version of |
Workaround 3 steps 2 and 3 should mention that cmd needs to be opened as Administrator for instructions to work. |
Good call @vees. Fixed. |
Thanks for catching this. I have a WPF skinning/theming framework that was suddenly crashing on startup. Please share the results of your gap investigation as my theming framework depends on querying/using/falling back to various fonts. |
@richlander Workaround 3 step 2 contains 2 different paths, please fix it by replacing Framework64 with Framework. |
The document has been updated. We re-released the Monthly Rollup for Windows 7 and Windows Server 2008. We also released a fixit tool. Thanks for your patience. |
The document has been updated again. The fixit tool that we released a few days ago is now available via Windows Update, WSUS, and the Microsoft Update Catalog. |
Is this applicable to only Windows 7 because I encountered the same issue on Windows 10. I uninstalled dotPeek thinking maybe it's a config issue that would be restrored to defaults if I reinstalled but having trouble with your starting your web installer as well as opening standalone product (doesnt get beyond the initial splash screen). I have Resharper ultimate, not sure if that matters. |
This repo is no longer actively monitored. Closing up old issues that have not had activity in while. If this is still an issue, please open a new issue in an appropriate repo listed in microsoft/dotnet#1275 |
.NET Framework January 2018 Monthly Rollup Known Issue KB4074906 - "TypeInitializationException" or "FileFormatException" error in WPF applications
Updated: January 24, 2018
An issue has been found in the .NET Framework January 2018 Security and Quality Rollup (KB 4055002), applicable to .NET Framework 4.7.1 installed on either Windows 7 and Windows Server 2008 R2.
The .NET team has fixed the issue and re-released the January 2018 Monthly Rollup for affected Windows versions as KB 4074880. Affected machines can be fixed by using one of the solutions described later in the document.
This document describes the symptoms and solutions to resolve the issue.
The .NET Framework January 2018 Monthly Rollup Announcement blog post has been updated with this information.
Applicability
This issue applies to Windows 7 Service Pack 1 and Windows Server 2008 R2 Service Pack 1 machines. Users that install the following products/updates in the following order will experience this issue.
Symptoms
Windows Presentation Foundation (WPF) applications that request a fallback font or a character that is not included in the currently selected font return the following error messages:
Solutions
To work around this problem, use one of the following methods. We recommend the first option. The other options are provided in the unlikely case that the first option doesn't work for you.
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.
The tool replaces the corrupted font file with the correct version.
The easiest approach is to get the tool via Windows Update or WSUS. If you download and run the tool directly, please follow these instructions.
Important Notes:
You can use the following commands to run the tool and determine the return code.
The follow table lists the error codes that the tool outputs:
Solution 2 - Uninstall and re-install the January 2018 Monthly Rollup
The January 2018 Monthly Rollup has been re-released with a fix for this known issue. You will have a working system if you uninstall the initial Monthly Rollup (KB 4055002) and instead install updated January 2018 Monthly Rollup (KB 4074880).
Follow these steps:
Solution 3 - Replace GlobalUserInterface.CompositeFont Manually
Manually replace corrupted font file with correct version.
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)
cmd
as Administrator and navigate to %windir%\Microsoft.NET\Framework64\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\Framework64\v4.0.30319\WPF\Fonts).
Root Cause
The root cause of this problem is a MSI setup interaction between the .NET Framework January 2018 Rollup (KB4055002) and an already installed version of .NET Framework 4.7.1 product. The Rollup installer unexpectedly overwrites the 4.7.1 version of the GlobalUserInterface.CompositeFont file. This causes WPF operations that need this font file to fail.
All updates are extensively tested before they are provided to you. We are investigating the gap in our testing and will resolve that for our next release.
Issue Reports
The text was updated successfully, but these errors were encountered: