6 instantiations of MessageSecurityException
System.ServiceModel.NetFramingBase (6)
System\ServiceModel\Channels\FramingChannels.cs (2)
454
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
MessageSecurityException
(
486
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
MessageSecurityException
(SR.ServerRejectedUpgradeRequest, decoder.CreatePrematureEOFException()));
System\ServiceModel\Channels\SslStreamSecurityUpgradeProvider.cs (4)
433
throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new
MessageSecurityException
(SR.Format(SR.IdentityCheckFailedForOutgoingMessage, identity, serviceReference)));
475
result = new
MessageSecurityException
(SR.Format(SR.DnsIdentityCheckFailedForOutgoingMessageLackOfDnsClaim, expectedDnsName));
479
result = new
MessageSecurityException
(SR.Format(SR.DnsIdentityCheckFailedForOutgoingMessage, expectedDnsName, actualDnsName));
484
result = new
MessageSecurityException
(SR.Format(errorString, identity, serviceReference));
10 references to MessageSecurityException
Security.TransportSecurity.IntegrationTests (9)
Https\ClientCredentialTypeTests.4.1.0.cs (2)
118
MessageSecurityException
exception = Assert.Throws<
MessageSecurityException
>(() =>
Tcp\ClientCredentialTypeCertificateCanonicalNameTests.4.1.0.cs (5)
69
catch (Exception exception) when (exception is CommunicationException || exception is
MessageSecurityException
)
71
if ((exception is
MessageSecurityException
) || (exception is CommunicationException) && !string.Equals(exception.InnerException.GetType().ToString(), "System.ServiceModel.Security.MessageSecurityException"))
145
catch (Exception exception) when (exception is CommunicationException || exception is
MessageSecurityException
)
147
if ((exception is
MessageSecurityException
) || (exception is CommunicationException) && !string.Equals(exception.InnerException.GetType().ToString(), "System.ServiceModel.Security.MessageSecurityException"))
231
catch (
MessageSecurityException
exception)
Tcp\IdentityTests.4.1.1.cs (2)
36
var
exception = Assert.Throws<
MessageSecurityException
>(() =>
System.ServiceModel (1)
netstandard.cs (1)
208
[assembly: TypeForwardedTo(typeof(
MessageSecurityException
))]