2017 年 9 月 12 日安裝 .NET 安全與品質整合後的渲染問題

套用到
.NET Framework 4.6.2 .NET Framework 4.6.1 .NET Framework 4.6 .NET Framework 4.7

查看本文適用的產品。

症狀

當你安裝 2017 年 9 月 12 日針對 .NET Framework 4.6、4.6.1、4.6.2 和 4.7 的 .NET 安全與品質整合後,你會在 Windows 服務中使用 WPF 型別的 WPF) 應用程式Windows Presentation Foundation (呈現時遇到渲染問題。

當這些問題發生時,使用 WPF 元素渲染的應用程式會產生黑色影像。 當應用程式在以下情況下執行時,會發生這種情況:

  • 例如,在非互動式的 Window Station (中,Windows 服務)
  • 以 LocalSystem 帳號執行
  • 透過使用像 psexec.exe 等工具在 Session 0 中互動式

解決方式

為了解決這些問題,請針對你的系統套用以下更新:

  • 4043767 2017 年 10 月,.NET Framework 3.5、4.5.2、4.6、4.6.1、4.6.2、4.6.2 及 4.7 更新的安全與品質彙整,適用於 Windows 8.1、Windows RT 8.1 及 Windows Server 2012 R2 (KB 4043767)
  • 4043769 2017 年 10 月 .NET Framework 3.5、4.5.2、4.6.1、4.6.2、4.6.2 及 4.7 更新的安全與品質整合,適用於 Windows Server 2012 (KB 4043769)
  • 4043766 2017 年 10 月 .NET Framework Windows 7 SP1 的 3.5.1、4.5.2、4.6、4.6.1、4.6.2 及 4.7 的安全與品質整合,以及 2008 R2 SP1 (KB 4043766) Windows Server
  • 4043768 2017 年 10 月 2008 SP2 (KB 4043768) .NET Framework 2.0 SP2、4.5.2 及 4.6 更新的安全與品質整合Windows Server

因應措施

為了解決此問題,暫時移除 2017 年 9 月 12 日的安全與品質整合更新,然後安裝相應的 9 月 12 日 Security-Only 更新,以確保系統能防範最新漏洞。

相應的 Security-Only 更新如下:

4040956 .NET Framework 4.6、4.6.1、4.6.2 及 4.7 for Windows 8.1、Windows RT 8.1 及 Windows Server 2012 R2 的安全性純更新:2017 年 9 月 12 日

4040955 .NET Framework 4.6、4.6.1、4.6.2 及 4.7 的僅安全性更新,適用於 Windows Server 2012:2017 年 9 月 12 日

4040957 僅安全更新:Windows 7 SP1 及 2008 R2 SP1 Windows Server.NET Framework 4.6、4.6.1、4.6.2 及 4.7,以及 2008 Windows Server 2008 SP2 .NET Framework 4.6 4.6:2017 年 9 月 12 日

更多資訊

我們建議你不要在 Windows 服務中使用 WPF 類型。

欲了解更多如何使用 WPF 進行應用程式開發的資訊,請參閱以下 Microsoft Learn 文章:

應用程式開發

參考資料

4040972 .NET Framework 4.6、4.6.1、4.6.2 及 4.7 Windows 8.1、Windows RT 8.1 及 Windows Server 2012 R2 的安全與品質整合:2017 年 9 月 12 日

4040971 .NET Framework 4.6、4.6.1、4.6.2 及 4.7 Windows Server 2012 的安全與品質整合:2017 年 9 月 12 日

4040973 Windows 7 SP1 及 2008 R2 SP1 Windows Server.NET Framework 4.6、4.6.1、4.6.2 及 4.7 的安全與品質整合,以及 2008 Windows Server 2008 SP2 .NET Framework 4.6 4.6:2017 年 9 月 12 日

適用於

本文適用於下列項目:

  • .NET Framework 4.6、4.6.1、4.6.2 及 4.7,搭配以下版本使用:

    • Windows 8.1
    • Windows RT 8.1
    • Windows Server 2012 R2
    • Windows Server 2012
    • Windows 7 SP1
    • Windows Server 2008 R2 SP1
  • .NET Framework 4.6 搭配使用時:

    • Windows Server 2008 SP2