Abp Commercial 5.2.0 / Blazor Server / EF
Hi,
We recently deployed our Abp project to Azure and we are finding that the email confirmation link that is generated by the system is referencing localhost (as if working through VS) instead of the actual domain/url provided through Azure.
I'm guessing there is a simple configuration solution to this, but wanted to ask here as we are somewhat new to Abp and deploying to a production environment in general.
Thanks in advance!
Abp Commercial 5.2.0 / Blazor Server / EF / Non-tiered
Hi, we are receiving the below exception when using the virtual file system to override the default email confirmation text template. Everything works fine when running locally in VS, but the exception:
Volo.Abp.AbpException: Could not find a file/folder at the location: /Email/Templates/EmailConfirmation.tpl
occurs when running in azure. We noticed that this has been encountered before in the following post, but nothing posted there seems to work in our situation. https://support.abp.io/QA/Questions/2187/TemplateDefinitionProvider-ABP---Virtual-File-Path-not-working-after-deployment-to-Azure
We've looked at https://support.abp.io/QA/Questions/2187/TemplateDefinitionProvider-ABP---Virtual-File-Path-not-working-after-deployment-to-Azure Our .tpl files are flagged as an 'Embedded Resource' in our Application.Contracts Project and we have the following defined in the ConfigureServices method of the Application.Contracts project:
Configure<AbpVirtualFileSystemOptions>(options =>
{
options.FileSets.AddEmbedded<TimepieceApplicationContractsModule>();
});
2022-05-10 22:31:02.338 +00:00 [INF] Executed endpoint '/Account/Login'
2022-05-10 22:31:02.357 +00:00 [ERR] An unhandled exception has occurred while executing the request.
Volo.Abp.AbpException: Could not find a file/folder at the location: /Email/Templates/EmailConfirmation.tpl
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.TextTemplating.TemplateRenderingEngineBase.GetContentOrNullAsync(TemplateDefinition templateDefinition)
at Volo.Abp.TextTemplating.Scriban.ScribanTemplateRenderingEngine.RenderSingleTemplateAsync(TemplateDefinition templateDefinition, Dictionary`2 globalContext, Object model)
at Volo.Abp.TextTemplating.Scriban.ScribanTemplateRenderingEngine.RenderInternalAsync(String templateName, Dictionary`2 globalContext, Object model)
at Volo.Abp.TextTemplating.Scriban.ScribanTemplateRenderingEngine.RenderAsync(String templateName, Object model, String cultureName, Dictionary`2 globalContext)
at Volo.Abp.TextTemplating.AbpTemplateRenderer.RenderAsync(String templateName, Object model, String cultureName, Dictionary`2 globalContext)
at Volo.Abp.Account.Emailing.AccountEmailer.SendEmailConfirmationLinkAsync(IdentityUser user, String confirmationToken, String appName, String returnUrl, String returnUrlHash)
at Volo.Abp.Account.AccountAppService.SendEmailConfirmationTokenAsync(IdentityUser user, String applicationName, String returnUrl, String returnUrlHash)
at Volo.Abp.Account.AccountAppService.SendEmailConfirmationTokenAsync(SendEmailConfirmationTokenDto input)
Thanks in advance.
Abp Commercial 5.2.0 / Blazor Server / EF
Hi we are trying to troubleshoot an issue by creating a new solution at an older version by using the following CLI command
abp new FM.Test2 -u blazor-server -o c:\temp\FM.Test2 -v 4.2.0
The solution gets created, but for some reason there is no Blazor project in the solution that is created.
Please advise. Thanks in advance.
Abp Commercial 5.2.0 / Blazor Server / EF / Non-tiered
Hi, I was wondering if anyone had any insight or recommendations for an issue we are having after publishing our Abp solution to an Azure App Service.
Everything works perfectly when we run locally in VS, but when hitting the URL in Azure, we see the index start page right away, but when licking on 'login', after about 15 seconds, we receive a 502 error as shown below. We have monitored the application using Azure's Application Insights and we se no exceptions occurring and we see nothing in any of the Azure logs.
"502 - Web server received an invalid response while acting as a gateway or proxy server. There is a problem with the page you are looking for, and it cannot be displayed. When the Web server (while acting as a gateway or proxy) contacted the upstream content server, it received an invalid response from the content server."
Any suggestions is greatly appreciated as this one really has us scratching our heads.
Abp Commercial 5.2.0 / Blazor Server / EF Core
We've overridden the User Management page, but noticed that the Grid is built using AbpExtensibleDataGrid, so it appears that UI customizations are not possible, is that correct?
We are attempting to modify the Actions drop-down button so that it has an icon within it (similar to what is seen in the Easy CRM demo that is not built with Blazor).
Is there a recommended approach to doing this?
Thanks in advance, -Brian
Abp Commercial 5.2.0 / Blazor Server / EF / Non-tiered
When there are more than 10 users to add to an organization unit (10 is the default page size), and you try to navigate to another page, nothing happens.
Please advise.
Thanks
Abp Commercial 5.2.0 / Blazor Server / EF Core
Hi,
We created an extended property on the IdentityUser entity and have overriden the UserManagment.razor page. We see the the expended property is rendered with the following...
<ExtensionProperties TEntityType="IdentityUserCreateDto" TResourceType="IdentityResource" Entity="@NewEntity" LH="@LH" />
How can one make the extended property read only? Is there a configuration somewhere? Or is there a way to manually create the input without using the <ExtensionProperties>
component?
Thanks in advance, -Brian
Abp Commercial 5.2.0 / Blazor Server / EF Core / Non-tiered
Hi, We are using the ObjectExtensionManager to create a custom property on the IdentityUser entity and would like to do validation that requires an App Service call.
In the documentation (https://docs.abp.io/en/abp/latest/Object-Extensions#custom-validation) we see that custom validation can be accomplished with:
options.Validators.Add(context =>
{... }
... and that context.ServiceProvider
can be used to call an application service for advanced validation scenarios.
The problem we are having is that ObjectExtensionManager is templated to reside in the Domain.Shared project which cannot have a reference to our application services due to circular dependency issues.
Are we missing something here, or is there a better/recommended way of accomplishing what we are looking for?
Thanks in advance, Brian
Abp Commercial 5.2.0 / Blazor Server / EF Core / Non-tiered
Hi,
We have extended the IdentityUser entity with a new property but need to have the property only visible on the user listing (needs to be hidden on the create and edit modal). To accomplish this, we implemented the following in our ProjectNameModuleExtensionConfigurator class:
user.AddOrUpdateProperty<string>(
EmployeeConsts.FullName
, property =>
{
property.DisplayName = LocalizableString.Create<TimepieceResource>(
"DisplayName:FullName");
property.DefaultValue = null;
property.UI.OnCreateForm.IsVisible = false;
property.UI.OnEditForm.IsVisible = false;
property.UI.OnTable.IsVisible = true;
}
);
The extended property, however, is still visible on the create and edit modals.
Are we doing something wrong, or is this a bug?
Thanks in advance.
Hi,
Abp Commercial 5.2.0 / Blazor Server / EF / Non tiered
Please let us know if these are things that will be looked at and if there are workarounds or suggestions.
Thanks in advance, Brian