Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List<string> not supported #22

Open
cocoon opened this issue Oct 17, 2024 · 0 comments
Open

List<string> not supported #22

cocoon opened this issue Oct 17, 2024 · 0 comments

Comments

@cocoon
Copy link

cocoon commented Oct 17, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant