You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
Using FormattingUtilities.XsdDataContractExporter.GetRootElementName(type) throws in netcoreapp2.0 when used in ExplicitResponseTypeDecoration_WithExplicitDefaultStatus_SpecifiedViaProducesAttribute #6235
Type 'Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary' cannot be serialized. Consider marking it with the DataContractAttribute attribute,and marking all of its members you want serialized with the DataMemberAttribute attribute. Alternatively,you can ensure that the type is public and has a parameterless constructor - all public members of the type will then be serialized,and no attributes will be required.
at System.Runtime.Serialization.DataContract.DataContractCriticalHelper.ThrowInvalidDataContractException(String message,Type type)
at System.Runtime.Serialization.DataContract.DataContractCriticalHelper.CreateDataContract(Int32id,RuntimeTypeHandletypeHandle,Typetype)atSystem.Runtime.Serialization.DataContract.DataContractCriticalHelper.GetDataContractSkipValidation(Int32id,RuntimeTypeHandletypeHandle,Typetype)
at System.Runtime.Serialization.DataContract.GetDataContract(RuntimeTypeHandletypeHandle,Typetype,SerializationModemode)
at System.Runtime.Serialization.XsdDataContractExporter.GetRootElementName(Typetype)
at Microsoft.AspNetCore.Mvc.Formatters.XmlDataContractSerializerOutputFormatter.CreateSerializer(Typetype)