Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

InvalidOperationException: Invalid or missing value of the choice identifier '__ItemsElementName' of type 'UblSharp.XmlDigitalSignature.KeyInfoTypeItem[]'. #40

Copy link
Copy link
@gunarsekar

Description

@gunarsekar
Issue body actions

Unable to serialize X509DataType class with X509Certificate due to same type for multiple xml element.
[XmlAnyElement]
[XmlElement("X509CRL", typeof(byte[]), DataType = "base64Binary")]
[XmlElement("X509Certificate", typeof(byte[]), DataType = "base64Binary")]
[XmlElement("X509IssuerSerial", typeof(X509IssuerSerialType))]
[XmlElement("X509SKI", typeof(byte[]), DataType = "base64Binary")]
[XmlElement("X509SubjectName", typeof(string))]
[XmlChoiceIdentifier("__ItemsElementName")]

any one know how to resolve this issue? or any way to serialize to xml without any issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.