akash1262
(Akash Singla)
January 19, 2018, 4:46am
1
Every time I try to install the community version on my new HP zbook laptop, i got an object reference not set to an instance error.
Please help!!
prassin6
(Prashant Singh)
January 19, 2018, 5:48am
2
@akash1262 , Not sure why do u only want to. Install the community version only. There are stable ui path setup files which runs smoothly with no errors.
I have been using an old version of ui path and working on quite big projects but never really felt the need to install community version.
If there is no specific reason, then I would recommend u to just use a normal setup file and install it.
Regards,
ddpadil
(Dilip)
January 19, 2018, 5:59am
3
Hey there,
Did you try to install 2018 edition ? please post your hardware and software configuration which will help QA team to assist better.
PS: Tagged to 18_1 thread.
akash1262
(Akash Singla)
January 19, 2018, 11:30am
4
Hey,
Thanks for ur quick response. Issue is with the .net framework installed on my laptop. I have 4.7.1 installed on my machine and it seems UI path is not compatible with 4.7.1. I have removed that version of .net framework and installed 4.6 and everything starts working smoothly.
There seems to be some issue with latest windows 7 update due to which some of the WPF applications are not working as expected. see below link:
opened 04:49AM - 12 Jan 18 UTC
.NET Framework
PSA
# .NET Framework January 2018 Monthly Rollup Known Issue KB4074906 - "TypeInitia… lizationException" 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)](https://support.microsoft.com/help/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](https://support.microsoft.com/help/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](https://blogs.msdn.microsoft.com/dotnet/2018/01/09/net-framework-january-2018-security-and-quality-rollup/) has been updated with this information.
## Discussion
Please share your thoughts on this change and see what others are saying at:
* [microsoft/dotnet #599](https://github.com/Microsoft/dotnet/issues/599)
## 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.
* [.NET Framework 4.7.1](https://blogs.msdn.microsoft.com/dotnet/2017/10/17/announcing-the-net-framework-4-7-1/)
* [.NET Framework January 2018 Security and Quality Rollup (KB 4055002)](https://support.microsoft.com/help/4055002)
## 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:
```
System.TypeInitializationException
“FileFormatException: No FontFamily element found in FontFamilyCollection
that matches current OS or greater: Win7SP1”.
Inner exception originates from: CompositeFontParser
```
## 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](https://support.microsoft.com/help/4074906), available on [Windows Update](https://support.microsoft.com/help/4074906), [WSUS](https://support.microsoft.com/help/4074906), [Microsoft Update Catalog](http://catalog.update.microsoft.com/v7/site/Search.aspx?q=4074906), and as a [direct download](https://dotnetbinaries.blob.core.windows.net/kbassets/KB4074906/fixittool-KB4074906.exe).
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.
* Close any open running applications, particularly if you know that they use the .NET Framework.
* Execute the tool from an Administrator command prompt (will prompt for Administrator permissions otherwise).
* Re-launch your .NET Framework application(s) and note that the issue has been resolved.
Important Notes:
* The Fixit tool is only meant to be used on affected systems. It will only complete the repair work on systems that match the applicability and symptoms described above.
* If you are running the tool programmatically and/or want to check for success status via tool return codes, launch the tool as a new process and wait for it to terminate (e.g. “start /wait FixItTool-KB4074906.exe”). Depending on your systems management environment this may happen by default.
You can use the following commands to run the tool and determine the return code.
```
C:\KB4074906>start /wait FixItTool-KB4074906.exe
C:\KB4074906>echo %errorlevel%
```
The follow table lists the error codes that the tool outputs:
|Case | Code|
|-----|-----|
|Success| 0 |
|Copy Error | 2|
|File in Use| 33|
|Generic Error | 1603|
|NotApplicable | 20160|
### 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](https://support.microsoft.com/help/4055002)) and instead install updated January 2018 Monthly Rollup ([KB 4074880](https://support.microsoft.com/help/4074880)).
Follow these steps:
1. In Control Panel, open the Windows Update item, and then select View update history.
1. In the Review your update history list, locate and select Security and Quality Rollup for Microsoft .NET Framework 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1 ([KB4055002](https://support.microsoft.com/en-us/help/4055002)). Then, select Uninstall.
1. When you are prompted for confirmation to uninstall, select Yes.
1. Restart your computer if you are prompted to do so.
1. Download and install the Monthly Rollup for .NET Framework 4.6, 4.6.1, 4.6.2, 4.7, and 4.7.1 for Windows 7 SP1 and Windows Server 2008 R2 SP1 and .NET Framework 4.6 for Windows Server 2008 SP2 ([KB 4074880](https://support.microsoft.com/help/4074880)) for your operating system configuration from the following links:
* [Security and Quality Rollup for .NET Framework 4.6, 4.6.1, 4.6.2, 4.7, and 4.7.1 for Windows 7 SP1 and Server 2008 R2 SP1 for x86 systems (KB 4074880)](http://download.windowsupdate.com/d/msdownload/update/software/secu/2018/01/ndp47-kb4074880-x86_3b871776f1918a0bc83f51bb2c5ac0366b18f08b.exe)
* [Security and Quality Rollup for .NET Framework 4.6, 4.6.1, 4.6.2, 4.7, and 4.7.1 for Windows 7 SP1 and Server 2008 R2 SP1 for x64 systems (KB 4074880)](http://download.windowsupdate.com/d/msdownload/update/software/secu/2018/01/ndp47-kb4074880-x64_7614e045d68cf219949917b18194b0bc8ee2b007.exe)
1. Follow the installation prompts, and then restart your computer if your are prompted to do this.
### Solution 3 - Replace GlobalUserInterface.CompositeFont Manually
Manually replace corrupted font file with correct version.
1. Download [GlobalUserInterface.CompositeFont](https://dotnetbinaries.blob.core.windows.net/kbassets/KB4074906/GlobalUserInterface.CompositeFont) (default download for Windows 7 is %USERPROFILE%\Downloads).
1. 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)
1. Launch `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).
1. Re-launch WPF application.
1. Reboot machine and re-launch application if you still have trouble.
## Root Cause
The root cause of this problem is a MSI setup interaction between the [.NET Framework January 2018 Rollup (KB4055002)](https://support.microsoft.com/help/4055002) 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
* [KB4074906 (Microsoft)](https://support.microsoft.com/en-us/help/4074906)
* [0xd4d/dnSpy #692](https://github.com/0xd4d/dnSpy/issues/692)
* [Wox-launcher/Wox #1823](https://github.com/Wox-launcher/Wox/issues/1823)
Regards,
akash
2 Likes