Starts in:
0 DAY
3 HRS
54 MIN
36 SEC
Starts in:
0 D
3 H
54 M
36 S
Open Closed

Message: Method arguments are not valid! See ValidationErrors for details. #7817


User avatar
0
cunyong.yu@vskysoft.com created
  • 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, Func3 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.CastleAsyncAbpInterceptorAdapter1.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)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    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

  • User Avatar
    0
    cunyong.yu@vskysoft.com created

    The problem suddenly disappeared. I'm sorry for wasting your time.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    : )

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06