Skip to content

Latest commit

 

History

History
136 lines (71 loc) · 9.35 KB

File metadata and controls

136 lines (71 loc) · 9.35 KB
title description ms.date author
Runtime changes for migration to .NET Framework 4.6.x
Find information about application compatibility issues from runtime changes that might affect your app when migrating to .NET Framework 4.6.x.
07/31/2023
chlowell

Runtime changes for migration to .NET Framework 4.6.x

This article lists the app compatibility issues that were introduced in .NET Framework 4.6, 4.6.1, and 4.6.2.

.NET Framework 4.6

ASP.NET

[!INCLUDEGridViews with AllowCustomPaging set to true may fire the PageIndexChanging event when leaving the final page of the view]

Core

[!INCLUDEA ConcurrentDictionary serialized in .NET Framework 4.5 with NetDataContractSerializer cannot be deserialized by .NET Framework 4.5.1 or 4.5.2]

[!INCLUDEAppDomainSetup.DynamicBase is no longer randomized by UseRandomizedStringHashAlgorithm]

[!INCLUDECalling Attribute.GetCustomAttributes on an indexer property no longer throws AmbiguousMatchException if the ambiguity can be resolved by index's type]

[!INCLUDECOR_PRF_GC_ROOT_HANDLEs are not being enumerated by profilers]

[!INCLUDEETW EventListeners do not capture events from providers with explicit keywords (like the TPL provider)]

[!INCLUDEPersian calendar now uses the Hijri solar algorithm]

[!INCLUDEReflection objects can no longer be passed from managed code to out-of-process DCOM clients]

[!INCLUDETargetFrameworkName for default app domain no longer defaults to null if not set]

[!INCLUDEX509Certificate2.ToString(Boolean) does not throw now when .NET cannot handle the certificate]

Data

[!INCLUDEAttempting a TCP/IP connection to a SQL Server database that resolves to localhost fails]

Debugger

[!INCLUDENull coalescer values are not visible in debugger until one step later]

Networking

[!INCLUDEContentDisposition DateTimes returns slightly different string]

Serialization

[!INCLUDEException message has changed for failed DataContract serialization in case of an unknown type]

Setup and Deployment

[!INCLUDEProduct versioning changes in the .NET Framework 4.6 and later versions]

[!INCLUDEThe .NET Framework 4.6 does not use a 4.5.x.x version when registering itself in the registry]

Windows Communication Foundation (WCF)

[!INCLUDEWCF services that use NETTCP with SSL security and MD5 certificate authentication]

Windows Presentation Foundation (WPF)

[!INCLUDEAccessing a WPF DataGrid's selected items from a handler of the DataGrid's UnloadingRow event can cause a NullReferenceException]

[!INCLUDECalling Items.Refresh on a WPF ListBox, ListView, or DataGrid with items selected can cause duplicate items to appear in the element]

[!INCLUDECoerceIsSelectionBoxHighlighted]

[!INCLUDEListBoxItem IsSelected binding issue with ObservableCollection<T>.Move]

[!INCLUDERight clicking on a WPF DataGrid row header changes the DataGrid selection]

[!INCLUDEWPF spawns a wisptis.exe process which can freeze the mouse]

[!INCLUDEWPF spell checking in text-enabled controls will not work in Windows 10 for languages not in the OS's input language list]

[!INCLUDEWPF windows are rendered without clipping when extending outside a single monitor]

.NET Framework 4.6.1

Tools

[!INCLUDEContract.Invariant or Contract.Requires<TException> do not consider String.IsNullOrEmpty to be pure]

Windows Presentation Foundation (WPF)

[!INCLUDEItem-scrolling a flat list with items of different pixel-height]

[!INCLUDEObjectDisposedException thrown by WPF spellchecker]

[!INCLUDEWPF Spell Checking fails in unexpected ways]

.NET Framework 4.6.2

Data

[!INCLUDEAttempting a TCP/IP connection to a SQL Server database that resolves to localhost fails]

[!INCLUDEConnection pool blocking period for Azure SQL databases is removed]

Globalization

[!INCLUDEUnicode standard version 8.0 categories now supported]

Security

[!INCLUDERSACng and DSACng are once again usable in Partial Trust scenarios]

[!INCLUDERSACng.VerifyHash now returns False for any verification failure]

[!INCLUDESignedXml and EncryptedXml Breaking Changes]

Windows Communication Foundation (WCF)

[!INCLUDERemove Ssl3 from the WCF TransportDefaults]

Windows Presentation Foundation (WPF)

[!INCLUDEChanging the IsEnabled property of the parent of a TextBlock control affects any child controls]

[!INCLUDECoerceIsSelectionBoxHighlighted]

[!INCLUDEDataGridCellsPanel.BringIndexIntoView throws ArgumentOutOfRangeException]

[!INCLUDEHorizontal scrolling and virtualization]

[!INCLUDEItems.Clear does not remove duplicates from SelectedItems]

[!INCLUDEItem-scrolling a flat list with items of different pixel-height]

[!INCLUDERibbonGroup background is set to transparent in localized builds]

[!INCLUDEWPF Spell Checking fails in unexpected ways]