Skip to content

Problem with update KB5050009 affecting IIS web application (XPS Document images) #10322

@stewartsims

Description

@stewartsims

Description

Since installing update KB5050009 on more than one machine we are now have a problem with a web application that runs in IIS. The application produces XPS documents from a XAML template that are then converted in PDFs.

Any of the images that use network references as the source such as below are now not showing when the application produces the document:
<Image Source="\\localhost\SharedFolder\my-image.png" />

Rolling back the update fixes the problem, but Windows continues to 'want' to install the update.

This is remarkably similar to an issue from a few years ago created by another security update:
#7357

That is why I have reported this issue in this repository. If this isn't the best place to report this, please let me know where to submit the issue.

Here are the packages used in the .cs file in the web application if it helps direct me to the right place to report the issue:
using System.Windows.Documents;
using System.Windows.Markup;
using System.Windows.Xps;
using System.Windows.Xps.Packaging;

For the PDF conversion we are using PdfSharp.Xps.XpsConverter but this is not the problem, it is definitely somehow the Windows update affecting the XPS Document functionality.

Apologies for the brief details, I can supply more information on how to recreate the issue.

Reproduction Steps

Process an XPS document in code on a Windows 11 machine after installing KB5050009. Note that any image with the following type of network path as an image source fails to display in the document:
<Image Source="\\localhost\SharedFolder\my-image.png" />

Expected behavior

The image should load from the network and display in the document.

Actual behavior

The image does not appear

Regression?

No response

Known Workarounds

No response

Impact

No response

Configuration

This is an issue for 2 web applications - one targeting .NET Framework 4.8 and one targeting .NET Framework 4.5.2

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    InvestigateRequires further investigation by the WPF team.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions