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)
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!
I am using the DataGrid component of blaze, but there is no Simplified Chinese package in the component.When I referred to the Localization document of Blazorise and set the language to zh-Han, I found that individual pages are valid, but global settings have no effect. Because it is used in many places, we hope to inject language packs globally. I added the following to the ConfigServices method of the Module. cs class in the Blazor project.
Translation of DataGrid component added to zh Hans.json file
But the interface still has no effect
I am trying to apply the Report component of Devexpress to a Chinese resource file, which works fine in the standard Blazor Server application, but it does not work in the Abp framework.
The method for applying Chinese resource files is as follows, which is a recommended method on Microsoft's official website, and the two demos use the same method:
Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, and please first use the search on the homepage. Provide us with the following info:
I created a module project, defined an interface in the“ Application. Contracts” project, implemented this interface in the” Application” and ”Controller” projects, and used the command ”abp generate proxy - t csharp - url' in the HttpApi. Client project http://localhost:44313 -M WorkCalendar -- without contracts "generated the proxy code, and then I referenced this proxy in ”Blazor. Server. Host ”and started the ”Blazor. Server. Host” and ”HttpApi. Host” projects. At this time, the ”CurrentUser” information obtained from the services in the Application project is null, and the services inherit IApplicationService and ITransientDependency interfaces, How can I obtain information about Blazor login users from the services in the Application project?
Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, and please first use the search on the homepage. Provide us with the following info:
I've created a component for reading Excel files that works fine in a blank Blazor project, but when I add it to a Blazor project based on ABP Framework, I get an error message saying 'Invocation provides 4 argument(s) but target expects 3.' Could you please help me understand why this happens and how to fix it? Thank you!"
The following is my code.
@page "/upload-excel"
@using System.IO
<Field>
<FileEdit Changed="@OnChanged" />
</Field>
@code {
async Task OnChanged(FileChangedEventArgs e)
{
try
{
var file = e.Files.FirstOrDefault();
if (file == null)
{
return;
}
using (MemoryStream result = new MemoryStream())
{
await file.OpenReadStream(long.MaxValue).CopyToAsync(result);
}
} catch (Exception exc)
{
Console.WriteLine(exc.Message);
} finally
{
this.StateHasChanged();
}
}
}