diff --git a/src/libraries/System.Security.Cryptography.Xml/src/System/Security/Cryptography/Xml/LocalAppContextSwitches.cs b/src/libraries/System.Security.Cryptography.Xml/src/System/Security/Cryptography/Xml/LocalAppContextSwitches.cs index 9c047f838b4a8d..888a98e13f2eb4 100644 --- a/src/libraries/System.Security.Cryptography.Xml/src/System/Security/Cryptography/Xml/LocalAppContextSwitches.cs +++ b/src/libraries/System.Security.Cryptography.Xml/src/System/Security/Cryptography/Xml/LocalAppContextSwitches.cs @@ -12,7 +12,7 @@ internal static partial class LocalAppContextSwitches private static int InitializeMaxReferencesPerSignedInfo() { const int DefaultMaxReferencesPerSignedInfo = 100; - object? data = AppContext.GetData("System.Security.Cryptography.MaxReferencesPerSignedInfo"); + object? data = AppContext.GetData("System.Security.Cryptography.Xml.MaxReferencesPerSignedInfo"); if (data is null) { diff --git a/src/libraries/System.Security.Cryptography.Xml/tests/SignedXml_Limits.cs b/src/libraries/System.Security.Cryptography.Xml/tests/SignedXml_Limits.cs index 9ba1212a1f62f1..563b114cf32a3d 100644 --- a/src/libraries/System.Security.Cryptography.Xml/tests/SignedXml_Limits.cs +++ b/src/libraries/System.Security.Cryptography.Xml/tests/SignedXml_Limits.cs @@ -13,7 +13,7 @@ public class SignedXml_Limits { private const int MaxTransformsPerReference = 10; private const int DefaultMaxReferencesPerSignedInfo = 100; - private const string MaxReferencesPerSignedInfoAppContextSwitch = "System.Security.Cryptography.MaxReferencesPerSignedInfo"; + private const string MaxReferencesPerSignedInfoAppContextSwitch = "System.Security.Cryptography.Xml.MaxReferencesPerSignedInfo"; [Theory] [InlineData(1, 1, false)]