WPF Enterprise App crashes on Windows 10/11 after Windows Updates installed - "StoryFragments part failed to load"

Devassy, Bijeesh 1 Reputation point
2023-01-09T07:16:11.413+00:00

WPF Enterprise App crashes on Windows 10/11 after Windows Updates installed - "StoryFragments part failed to load"

Our enterprise app (32/64 bit - targeting .NET Framework 4.8.x) deployed across hundreds of customer accounts with thousands users started getting error messages after the December Windows updates. Error occurs when XPS documents is rendered from Office documents.

"Error Initializing Field MS Word Document: StoryFragments Part Loading Failed"
"Error initializing field excel spreadsheet storyfragments part failed to load"

The issue was caused by:
December 13, 2022-KB5021086 Cumulative Update for .NET Framework 3.5, 4.8 and 4.8.1 for Windows 10, version 20H2
2022-12 Cumulative Update for .NET Framework 3.5, 4.8 and 4.8.1 for Windows 11 for x64 (KB5021090) and
2022-12 Cumulative Update for Windows 11 for x64-based Systems (KB5021234)
2022-12 Cumulative Update for Windows 11 Version 22H2 for x64-based Systems (KB5021255)

The work around mentioned in https://support.microsoft.com/en-gb/topic/kb5022083-change-in-how-wpf-based-applications-render-xps-documents-a4ae4fa4-bc58-4c37-acdd-5eebc4e34556 will resolve the issue.
But the solution is not subscribed by and not convincing to customers' IT departments for wide deployment in their infrastructure.

Looking for a solution.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,368 questions
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,670 questions
Office Management
Office Management
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Management: The act or process of organizing, handling, directing or controlling something.
2,000 questions
{count} votes

1 answer

Sort by: Most helpful
  1. vahid gh 0 Reputation points
    2023-06-25T13:36:52.2966667+00:00

    Hi

    This will solve the problem

    Run the command prompt by the right mouse click and selecting “Run as administrator”. Then, in the cmd terminal, paste the following command and execute it:

    reg add "HKLM\SOFTWARE\Microsoft.NETFramework\Windows Presentation Foundation\XPSAllowedTypes" /v "DisableDec2022Patch" /t REG_SZ /d "*" /reg:64

    https://support.microsoft.com/en-us/topic/kb5022083-change-in-how-wpf-based-applications-render-xps-documents-a4ae4fa4-bc58-4c37-acdd-5eebc4e34556

    0 comments No comments