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
When I try to register the validators using AddFluentValidation I get an exception:
System.IndexOutOfRangeException
HResult=0x80131508
Message=Index was outside the bounds of the array.
Source=PeterLeslieMorris.Blazor.FluentValidation
StackTrace:
at PeterLeslieMorris.Blazor.Validation.ValidationConfigurationFluentValidationExtensions.ScanForValidators(IServiceCollection services, IEnumerable`1 assembliesToScan)
at PeterLeslieMorris.Blazor.Validation.ValidationConfigurationFluentValidationExtensions.AddFluentValidation(ValidationConfiguration config, Assembly assemblyToScan, Assembly[] additionalAssembliesToScan)
at ::redacted::.ConfigurationManagement.Blazor.Startup.<>c.<ConfigureServices>b__4_2(ValidationConfiguration config) in C:\Users\::redacted::\source\repos\Configuration Management Admin Tool\::redacted::.ConfigurationManagement.Blazor\Startup.cs:line 110
There's no further information about what exactly went wrong.
This exception started after these validators were added:
When I try to register the validators using AddFluentValidation I get an exception:
There's no further information about what exactly went wrong.
This exception started after these validators were added:
I am unsure whether or not my validator is invalid, or if it's a bug in this package.
I think a fix would be either make it work, or throw a meaningful exception, so the caller knows what's up.
The text was updated successfully, but these errors were encountered: