Home

XmlSerializer gives NotSupportedException

Version: Linqpad 6 x64 v6.10.13

When creating a XmlSerializer the error NotSupportedException is thrown with the following details:

"A non-collectible assembly may not reference a collectible assembly."

Code Sample:

void Main()
{

    XmlSerializer ser = new XmlSerializer(typeof(Customer));
}

// You can define other methods, fields, classes and namespaces here
public class Customer{
    public string Name { get; set; }

}

Comments

Sign In or Register to comment.