1.4 KiB
1.4 KiB
Some .NET APIs cause first chance (handled) EntryPointNotFoundExceptions
Scope
Edge
Version Introduced
4.5
Version Reverted
4.5.1
Source Analyzer Status
Available
Change Description
In the .NET Framework 4.5, a small number of .NET methods began throwing first chance xref:System.EntryPointNotFoundException?displayProperty=names. These exceptions were handled within the .Net Framework, but could break test automation that did not expect the first chance exceptions. These same APIs break some ApiVerifier scenarios when HighVersionLie is enabled.
- Quirked
- Build-time break
Recommended Action
This bug can be avoided by upgrading to .NET Framework 4.5.1. Alternatively, test automation can be updated to not break on first-chance xref:System.EntryPointNotFoundException?displayProperty=names.
Affected APIs
M:System.Diagnostics.Debug.Assert(System.Boolean)
M:System.Diagnostics.Debug.Assert(System.Boolean,System.String)
M:System.Diagnostics.Debug.Assert(System.Boolean,System.String,System.String)
M:System.Diagnostics.Debug.Assert(System.Boolean,System.String,System.String,System.Object[])
M:System.Xml.Serialization.XmlSerializer.#ctor(System.Type)
- Investigate applicable APIs
Category
Core