Activities of "ageiter"

Thanks.

By the way, if I enter the phone number in a wrong format (e.g. without country code), this generates an internal error.

Can you please implement the validation of the format?

2023-01-30 10:30:29.439 +01:00 [INF] Executing endpoint 'Volo.Abp.Account.AccountController.SendPhoneNumberConfirmationTokenAsync (Volo.Abp.Account.Pro.Public.HttpApi)'
2023-01-30 10:30:29.439 +01:00 [INF] Route matched with {area = "account", action = "SendPhoneNumberConfirmationToken", controller = "Account", page = ""}. Executing controller action with signature System.Threading.Tasks.Task SendPhoneNumberConfirmationTokenAsync(Volo.Abp.Account.SendPhoneNumberConfirmationTokenDto) on controller Volo.Abp.Account.AccountController (Volo.Abp.Account.Pro.Public.HttpApi).
2023-01-30 10:30:29.478 +01:00 [DBG] Added 0 entity changes to the current audit log
2023-01-30 10:30:30.351 +01:00 [ERR] ---------- RemoteServiceErrorInfo ----------
{
  "code": null,
  "message": "Bei Ihrer Anfrage ist ein interner Fehler aufgetreten!",
  "details": null,
  "data": {},
  "validationErrors": null
}

2023-01-30 10:30:30.351 +01:00 [ERR] The 'To' number 0551112233 is not a valid phone number.
Twilio.Exceptions.ApiException: The 'To' number 0551112233 is not a valid phone number.
   at Twilio.Clients.TwilioRestClient.ProcessResponse(Response response)
   at Twilio.Clients.TwilioRestClient.RequestAsync(Request request)
   at Twilio.Rest.Api.V2010.Account.MessageResource.CreateAsync(CreateMessageOptions options, ITwilioRestClient client)
   at Twilio.Rest.Api.V2010.Account.MessageResource.CreateAsync(PhoneNumber to, String pathAccountSid, PhoneNumber from, String messagingServiceSid, String body, List`1 mediaUrl, Uri statusCallback, String applicationSid, Nullable`1 maxPrice, Nullable`1 provideFeedback, Nullable`1 attempt, Nullable`1 validityPeriod, Nullable`1 forceDelivery, ContentRetentionEnum contentRetention, AddressRetentionEnum addressRetention, Nullable`1 smartEncoded, List`1 persistentAction, ITwilioRestClient client)
   at Volo.Abp.Sms.Twilio.TwilioSmsSender.SendAsync(SmsMessage smsMessage)
   at Volo.Abp.Account.Phone.AccountPhoneService.SendConfirmationCodeAsync(IdentityUser user, String confirmationToken)
   at Volo.Abp.Account.AccountAppService.SendPhoneNumberConfirmationTokenAsync(SendPhoneNumberConfirmationTokenDto input)
   at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous(IInvocation invocation, IInvocationProceedInfo proceedInfo)
   at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapter.ProceedAsync()
   at Volo.Abp.Authorization.AuthorizationInterceptor.InterceptAsync(IAbpMethodInvocation invocation)
   at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync(IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)
   at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous(IInvocation invocation, IInvocationProceedInfo proceedInfo)
   at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapter.ProceedAsync()
   at Volo.Abp.GlobalFeatures.GlobalFeatureInterceptor.InterceptAsync(IAbpMethodInvocation invocation)
   at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync(IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)
   at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous(IInvocation invocation, IInvocationProceedInfo proceedInfo)
   at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapter.ProceedAsync()
   at Volo.Abp.Auditing.AuditingInterceptor.ProceedByLoggingAsync(IAbpMethodInvocation invocation, AbpAuditingOptions options, IAuditingHelper auditingHelper, IAuditLogScope auditLogScope)
   at Volo.Abp.Auditing.AuditingInterceptor.InterceptAsync(IAbpMethodInvocation invocation)
   at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync(IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)
   at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous(IInvocation invocation, IInvocationProceedInfo proceedInfo)
   at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapter.ProceedAsync()
   at Volo.Abp.Validation.ValidationInterceptor.InterceptAsync(IAbpMethodInvocation invocation)
   at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync(IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)
   at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous(IInvocation invocation, IInvocationProceedInfo proceedInfo)
   at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapter.ProceedAsync()
   at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation)
   at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync(IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.&lt;InvokeNextActionFilterAsync&gt;g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.&lt;InvokeInnerFilterAsync&gt;g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.&lt;InvokeNextExceptionFilterAsync&gt;g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)

Thank you very much. Overwriting GetTwoFactorProvidersAsync worked.

What do I have to overwrite to get rid of the dropdown (LeptonX 2.0.0)?

  • ABP Framework version: v7.0.1
  • UI type: Blazor Server
  • DB provider: EF Core

We use the two factor authentication. It works perfectly via email and SMS. But we want to force the user to do the verification via phone. He should not see the dropdown "Selected provider". How can I do this?

  • ABP Framework version: v7.0.1
  • UI type: Blazor Server
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no

We have a situation where we want to click again on an already selected menu item to reload that view. But nothing happens when we click on it. In our case this is necessary because we have a grid with orders in this view. If we select an order, the report of this order opens. Afterwards, we want to get back to the order overview and usually do this by clicking on the menu button (which is still selected, though).

Also in the admin area this does not work, there you have to use the "Back" button.

In version 5.3.1 this had worked (Lepton Theme, not LeptonX).

Do you have a solution to this?

Regards, Adrian

Ok, I have now applied a workaround to solve the problem.

hi

This line doesn't set the ServiceProvider of ValidationContext

if (NewTestDataContext.Validate() == false) 
{ 
    return; 
} 

I know that, but it would be interesting to know how I would have to do it... setting the ServiceProvider.

What does that mean exactly? It is not possible with Blazor? If yes, why? Or you have found a bug that you are going to fix?

Because for me your "solution" means that I can't output multilingual validation messages.

I have now been able to recreate the problem in a test project. I have emailed you the OneDrive download link for the test project.

In order for you to reproduce this, you need to create and save a new test element in my project.

I use the ObjectGraphDataAnnotationsValidator to validate a more complex object (doesn't make sense in the example, of course, but I had to include it since it's probably part of the problem).

Tests.razor (sorry, I had to change the HTML code so I could paste it here):

< EditForm id="CreateTestForm" EditContext="NewTestDataContext">
            
    < ObjectGraphDataAnnotationsValidator />

    < ModalHeader>
        < ModalTitle>@L["NewTest"]</ModalTitle>
        < CloseButton Clicked="CloseCreateTestModalAsync" />
    < /ModalHeader>
    < ModalBody>

        < Validation>
            < Field>
                < FieldLabel>@L["DocumentName"]</FieldLabel>
                < TextEdit @bind-Text="@NewTest.Document.DocumentName">
                    < Feedback>
                        < ValidationError />
                    < /Feedback>
                < /TextEdit>
            < /Field>
            < ValidationMessage For="() => NewTest.Document.DocumentValidation"></ValidationMessage>
        < /Validation>

    < /ModalBody>
    < ModalFooter>
        < Button Color="Color.Secondary" Clicked="CloseCreateTestModalAsync">
            @L["Cancel"]
        < /Button>
        < SubmitButton Form="CreateTestForm" Clicked="CreateTestAsync" />
    < /ModalFooter>
< /EditForm>

When validating DocumentDto.cs the error happens:

public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
    var results = new List<ValidationResult>();

    // This is not working when using EditContext !!!
    var l = validationContext.GetRequiredService<IStringLocalizer<Abp4146Resource>>(); 
    var errorMessage = l["Test:ValidationMessage"].Value;

    // Do some validation

    results.Add(new ValidationResult(errorMessage, new[] { nameof(DocumentValidation) }));
    
    return results;
}

Exception: System.InvalidOperationException: 'No service for type 'Microsoft.Extensions.Localization.IStringLocalizer`1[Abp4146.Localization.Abp4146Resource]' has been registered.'

What I found out: If I don't use the EditContext for the EditForm, but the model, then it works. But in my concrete project I need the EditContext...

This is working: &lt;EditForm id=&quot;CreateTestForm&quot; Model=&quot;@NewTest&quot;&gt; This is NOT working: &lt;EditForm id=&quot;CreateTestForm&quot; EditContext=&quot;NewTestDataContext&quot;&gt;

I wanted to make an example project, but there it works. I haven't figured out where the difference is and why it doesn't work in my other project...

Unfortunately, I can no longer reply here because the ticket is locked. But you said that you will get in touch when the individual points are done. Unfortunately I have not heard anything more about 8 of 9 points. Are certain things already fixed or planned for when? Currently I have version 6.0.1.

Showing 291 to 300 of 335 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 28, 2026, 11:44
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.