Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

查看本文適用的產品。

徵兆

安裝套用至 .NET Framework 4.6、4.6.1、4.6.2 和 4.7 的 2017 年 9 月 12 日 .NET 安全性和品質彙總套件後,您會在 Windows 服務中使用 WPF 類型的 Windows Presentation Foundation (WPF) 應用程式中遇到呈現的問題。

發生這些問題時,使用 WPF 元素轉譯的應用程式會產生黑色影像。 如果應用程式在下列情況下執行,就會發生這種情況:

  • 例如,在非互動式 Windows Station (中,Windows Services)

  • 作為 LocalSystem 帳戶執行

  • 使用 psexec.exe 等工具,在會話 0 中以互動方式互動

解決方案

若要解決這些問題,請將下列更新套用到適用于您的系統:

  • 4043767 2017 年 10 月適用於 Windows 8.1、Windows RT 8.1 和 Windows Server 2012 R2 之 .NET Framework 3.5、4.5.2、4.6、4.6.1、4.6.2 和 4.7 更新的安全性和品質彙總套件 (KB 4043767)

  • 4043769 2017 年 10 月適用於 Windows Server 2012 之 .NET Framework 3.5、4.5.2、4.6、4.6.1、4.6.2 和 4.7 更新的安全性和品質彙總套件 (KB 4043769)

  • 4043766 2017 年 10 月適用於 Windows 7 SP1 和 Windows Server 2008 R2 SP1 之 .NET Framework 3.5.1、4.5.2、4.6、4.6.1、4.6.2 和 4.7 的安全性和品質彙總套件 (KB 4043766)

  • 4043768 2017 年 10 月適用於 Windows Server 2008 SP2 的 .NET Framework 2.0 SP2、4.5.2 和 4.6 更新的安全性和品質彙總套件 (KB 4043768)

因應措施 

若要解決此問題,請暫時移除 2017 年 9 月 12 日的安全性和品質匯總套件更新,然後安裝對應的 2017 年 9 月 12 日Security-Only更新,以確保系統受到最新的弱點保護。

對應Security-Only更新如下:

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

4040955 Windows Server 2012 的 .NET Framework 4.6、4.6.1、4.6.2 和 4.7 僅限安全性更新:2017 年 9 月 12 日

4040957 適用于 Windows 7 SP1 與 Windows Server 2008 R2 SP1 以及適用于 Windows Server 2008 SP2 的 .NET Framework .NET Framework 4.6、4.6.1、4.6.2 和 4.7 僅限安全性更新:2017 年 9 月 12 日

其他相關資訊

建議您不要在 Windows 服務中使用 WPF 類型。

如需如何使用 WPF 進行應用程式開發的詳細資訊,請參閱下列 Microsoft Learn 文章:

應用程式開發

參考

4040972 Windows 8.1、Windows RT 8.1 和 Windows Server 2012 R2 的 .NET Framework 4.6、4.6.1、4.6.2 和 4.7 安全性和品質匯總套件:2017 年 9 月 12 日

4040971 Windows Server 2012 的 .NET Framework 4.6、4.6.1、4.6.2 和 4.7 安全性和品質匯總套件:2017 年 9 月 12 日

4040973 適用于 Windows 7 SP1 與 Windows Server 2008 R2 SP1 以及適用于 Windows Server 2008 SP2 的 .NET Framework 4.6 SP2 的 .NET Framework 4.6、4.6.1、4.6.2 和 4.7 安全性和品質匯總套件: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

Need more help?

Want more options?

探索訂閱權益、瀏覽訓練課程、瞭解如何保護您的裝置等等。

社群可協助您詢問並回答問題、提供意見反應,以及聆聽來自具有豐富知識的專家意見。

Was this information helpful?

How satisfied are you with the translation quality?
What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×