Activities of "LiSong"

  • ABP Framework version: v9.0.0
  • UI Type: MVC
  • Database System: EF Core (SQL Server
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

I am using text template:

        context.Add(
            new TemplateDefinition("StandardEmailTemplates") 
                .WithVirtualFilePath(
                    "/Demos/Hello/StandardEmailTemplates.html", //template content path
                    isInlineLocalized: true
                )
        );
        context.Add(
            new TemplateDefinition(TextTemplates.TrustInvitationEmailTemplate)
                .WithVirtualFilePath(
                    "/TextTemplates/TrustInvitationEmailTemplate.html", 
                    isInlineLocalized: true
                )
        );

    }
    

it works locally, but after I published it to Azure app service, it failed and gave me errors, even if I can see the files in the server: wwwroot/TextTemplates/TrustInvitationEmailTemplate.html:

2025-01-07 05:28:12.699 +00:00 [Error] Could not find a file/folder at the location: /TextTemplates/TrustInvitationEmailTemplate.html
Volo.Abp.AbpException: Could not find a file/folder at the location: /TextTemplates/TrustInvitationEmailTemplate.html
   at Volo.Abp.TextTemplating.VirtualFiles.LocalizedTemplateContentReaderFactory.CreateInternalAsync(TemplateDefinition templateDefinition)
   at Volo.Abp.TextTemplating.VirtualFiles.LocalizedTemplateContentReaderFactory.CreateAsync(TemplateDefinition templateDefinition)
   at Volo.Abp.TextTemplating.VirtualFiles.VirtualFileTemplateContentContributor.GetOrNullAsync(TemplateContentContributorContext context)
   at Volo.Abp.TextTemplating.TemplateContentProvider.GetContentOrNullAsync(ITemplateContentContributor[] contributors, TemplateContentContributorContext context)
   at Volo.Abp.TextTemplating.TemplateContentProvider.GetContentOrNullAsync(TemplateDefinition templateDefinition, String cultureName, Boolean tryDefaults, Boolean useCurrentCultureIfCultureNameIsNull)
   at Volo.Abp.TextTemplateManagement.TextTemplates.TemplateContentAppService.GetAsync(GetTemplateContentInput input)
   at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)

any suggestions?

Hello

Can you please check this document https://abp.io/docs/latest/suite/generating-crud-page.

Thank you.

hi, I have already checked the page, it doesn't say about the DI, the CRUD pages are working, but I just wanted to figure out how the code works

  • ABP Framework version: v9.X.X
  • UI Type: Angular / MVC / Blazor WASM / Blazor Server
  • Database System: EF Core (SQL Server, Oracle, MySQL, PostgreSQL, etc..) / MongoDB
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes/no
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

I use abp suite to create CRUD pages, it creates Service and Repository classes for me. but I can't see the place where the services and repositories are registered, for instance: AddScoped or AddTransient, can you explain?

  • ABP Framework version: v8.2.2
  • UI Type: MVC
  • Database System: SQL Server
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

I am using Office 365 SMTP for emailing, it works on the server but not on my local machine, I tried gmail smtp locally, it didn't work either, how should I debug? both office and gmail smtp work on the server so the settings should be correct. it shows the successful message and has no errors in the Logs

same issue...

thank you for your reply, I know how to use this CRUD page generation tool, but my question is how to add or remove it's properties after the CRUD page has been generated. the doc and the video you you gave me don't answer my question.

  • ABP Framework version: v8.2.2
  • UI Type: MVC
  • Database System: EF Core (SQL Server)
  • **Tiered (for MVC) : yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

hi what's the best practice if I want to update the entity by adding or removing it's properties or adding navigations after I created the CRUD page with the CRUD page generator? I know that I can modify the DTO and then generate a new db migration, but is there a better way or is there a doc for this?

Question
  • ABP Framework version: v8.1.0
  • UI Type: MVC
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

Does it have an event mechanism? For example, when a user confirms their email through email confirmation, and the system changes the user's email confirmed status from False to True, I want to add a feature that sends a welcome message to the user or changes the user's role after the email is confirmed.

I want to use the event like this:

  1. Create an event handler to handle the EmailConfirmedEvent:
public class EmailConfirmedEventHandler : ILocalEventHandler<EmailConfirmedEvent>, ITransientDependency
{
    public Task HandleEventAsync(EmailConfirmedEvent eventData)
    {
        // Code to send a welcome message or change user role
        SendWelcomeMessage(eventData.UserId);
        ChangeUserRole(eventData.UserId);

        return Task.CompletedTask;
    }

    private void SendWelcomeMessage(Guid userId)
    {
        // Implementation of sending a welcome message
    }

    private void ChangeUserRole(Guid userId)
    {
        // Implementation of changing user role
    }
}
  1. Register the event handler in the module's ConfigureServices method:
public override void ConfigureServices(ServiceConfigurationContext context)
{
    context.Services.AddTransient<ILocalEventHandler<EmailConfirmedEvent>, EmailConfirmedEventHandler>();
}

when the user confirms their email, the system will use the event mechanism to send a welcome message or change the user's role,

But I am not sure if abp has EmailConfirmedEvent so that I can use like this or does it have a similar mechanism?

Thanks

Answer

hi, can anyone answer my questions here?

Answer

yes, I have done it, after I changed these, I could see the auth login page with username and password, it allowed me to log in, but it showed those errors after I logged in but if you check my environment.js, I am using remote auth server and api host, they are hosted in Azure app services

by the way this is for dev/local environment settings, is there a doc for production settings? https://docs.abp.io/en/commercial/8.0/getting-started-react-native#configure-your-local-ip-address

Showing 91 to 100 of 108 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.1.0-preview. Updated on October 15, 2025, 07:46