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
System.InvalidCastException: Invalid cast from 'System.String' to 'System.Nullable`1[[System.Single, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'.
at System.Convert.DefaultToType(IConvertible value, Type targetType, IFormatProvider provider)
at System.String.System.IConvertible.ToType(Type type, IFormatProvider provider)
at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
at WebApiContrib.Core.Formatter.Csv.CsvInputFormatter.ReadStreamAsync(Type type, Stream stream)
at WebApiContrib.Core.Formatter.Csv.CsvInputFormatter.ReadRequestBodyAsync(InputFormatterContext context)
at Microsoft.AspNetCore.Mvc.ModelBinding.Binders.BodyModelBinder.BindModelAsync(ModelBindingContext bindingContext)
at Microsoft.AspNetCore.Mvc.ModelBinding.ParameterBinder.BindModelAsync(ActionContext actionContext, IModelBinder modelBinder, IValueProvider valueProvider, ParameterDescriptor parameter, ModelMetadata metadata, Object value)
at Microsoft.AspNetCore.Mvc.Controllers.ControllerBinderDelegateProvider.<>c__DisplayClass0_0.<<CreateBinderDelegate>g__Bind|0>d.MoveNext()
Can support for nullable reference types be added?
The text was updated successfully, but these errors were encountered:
The exception is thrown everytime csv data is received if the model it's trying to parse contains nullable reference types.
I have a model like this
sample CSV to parse
The exception thrown
Can support for nullable reference types be added?
The text was updated successfully, but these errors were encountered: