Serializes the specified SAML assertion to the specified XML writer.
Assembly: System.IdentityModel (in System.IdentityModel.dll)
writer is null.
data is null.
The assertion specified by data has both the EncryptingCredentials and ReceivedEncryptingCredentials properties set to null.
There are no statements and no subject in the assertion specified by data. (Both the Subject property and the Statements property are null.) If an assertion does not contain statements, it must contain a subject.
The assertion specified by data contains an authentication, attribute, or authorization decision statement and no subject—these statements require a subject. (The Statements property contains a statement of type Saml2AttributeStatement, Saml2AuthenticationStatement, or Saml2AuthorizationDecisionStatement and the Subject property is null).
The token encrypting credentials do not have a Symmetric Key specified.