- ABP Framework version: v7.2.2
- UI Type: Blazor Server
- Database System: EF Core (SQL Server, Oracle, MySQL, PostgreSQL, etc..)
- Tiered (for MVC) or Auth Server Separated (for Angular): yes
- Exception message and full stack trace:
- `Message: Method arguments are not valid! See ValidationErrors for details.
StackTrace: at Volo.Abp.Validation.MethodInvocationValidator.ThrowValidationError(MethodInvocationValidationContext context)
at Volo.Abp.Validation.MethodInvocationValidator.ValidateAsync(MethodInvocationValidationContext context)
at Volo.Abp.Validation.ValidationInterceptor.ValidateAsync(IAbpMethodInvocation invocation)
at Volo.Abp.Validation.ValidationInterceptor.InterceptAsync(IAbpMethodInvocation invocation)
at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func
3 proceed)
at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)
at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue1.ProceedAsync() at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation) at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter
1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func3 proceed)
- Steps to reproduce the issue:
- I have a module project for a blazor server, which I am working on in Application The Contracts layer defines a Dto type and adds the Required tag to the Objectid field. The code is as follows
- `[Required(ErrorMessageResourceName = "RequiredValidateMessage", ErrorMessageResourceType = typeof(LocalizationRes))]
public string? ObjectId { get; set; }` This exception occurs when triggering verification. I saw a question on GitHub introducing this bug. Do you have a solution? Can you explain it in detail:https://github.com/abpframework/abp/issues/17379 In addition, adding parameters such as ErrorMessage="" or ErrorMessage=null according to some methods on the network does not solve this problem. Please provide me with a solution without upgrading the ABP version. Thank you!
3 Answer(s)
-
0
hi
The 17379 is about MVC, but you are using Blazor Server.
Can you share a template project to reproduce this?
liming.ma@volosoft.com
Thanks -
0
The problem suddenly disappeared. I'm sorry for wasting your time.
-
0
: )