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
Hi, I have a custom class as parameter that is using List and it causes this error:
Object of type 'System.String[]' cannot be converted to type 'System.Collections.Generic.List1[System.String]'.`
fail: Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware[1]
An unhandled exception has occurred while executing the request.
System.ArgumentException: Object of type 'System.String[]' cannot be converted to type 'System.Collections.Generic.List`1[System.String]'.
at System.RuntimeType.CheckValue(Object& value, Binder binder, CultureInfo culture, BindingFlags invokeAttr)
at System.Reflection.RuntimeMethodInfo.InvokePropertySetter(Object obj, BindingFlags invokeAttr, Binder binder, Object parameter, CultureInfo culture)
at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)
at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, Object[] index)
at System.Reflection.PropertyInfo.SetValue(Object obj, Object value)
at Hangfire.MissionControl.Extensions.TypeExtensions.CreateSampleInstanceInternal(Type type, Int32 currentDepth, Int32 maxDepth) in ...\Hangfire.MissionControl\Extensions\TypeExtensions.cs:line 49
The text was updated successfully, but these errors were encountered:
Hi, I have a custom class as parameter that is using List and it causes this error:
Object of type 'System.String[]' cannot be converted to type 'System.Collections.Generic.List
1[System.String]'.`The text was updated successfully, but these errors were encountered: