Hi, I dev Blazor WebApp with v8.2 running well on development environment but when publishing to production running on nginx/ubuntu the error happened after clicked on Login button at Login Form. The home page still show ok, then click on Login --> Login Form show ok, too--> Enter user name and pwd, click login --> error happened: Link of Log file: https://drive.google.com/file/d/1bjEl2FtGVu6hYSlQj26jD9QznCYKLo7g/view?usp=sharing
Hi ABP Team, I have customed to add permission at runtime and I can added to Permission Group and Permission Table but when open Permission on UI these added permission were not shown there. Code to add new Permission Group and Permission: Result: Didn't see on UI of Permission Setting:
How can I implement a dynamic Permission Management that I can Add/Remove at runtime? Thanks, Dharma Han Nguyen
Hi ABP Team,
I have a problem with Chat module after upgraded to v8.2 and use new application template Blazor Web App.
My previous app I used Blazor Wasm template as the main solution in this main solution I installed Chat module. I have developed another module called Common, in this module I have added a Notification icon to toolbar follow the guideline from this: https://docs.abp.io/en/abp/latest/UI/Blazor/Toolbars, and I use SignalR to realtime update notification to show on this icon.. Then I integrated this module to Main Application, everything are ok.
Now I'd like to use new application template in v8.2: Blazor Web App so I created a new Main Solution with new template then I integrated Common module as I have done before but when run the Main Solution the Chat icon on Toolbar show during page loading but was disappeared after Common module loaded completely, and on the toolbar only see the Notification icon but didn't see Chat icon. I come to Setting to check the Chat feature was also disappeared here.
During loading page at beginning still can see Chat icon:
But after completing loading (included Common module) Chat was disappeared, only see the Notification I have implemented in Common module:
Go to Setting there is no Chat feature there:
Thanks, Dharma Han Nguyen
Hi ABP Team, I have a problem when upgrading to v8.2 and using new template of Blazor Web App. My current solution using version 8.1.4 as following:
Now I'd like to use the new application template Blazor Web App as the Main Application replace for the above Main Application (Blazor Web Assembly) and I don't know how to integrate these modules with the new Main Application structure as now we have 2 Blazor projects (Blazor and Blazor.Client). Is there any document or guidline for this case? I have tried to do as earlier versions but it seems having error with authentication when my component in module is using signalR and error happened with code of getting access_token In razor page I have injected: @inject IAccessTokenProvider TokenProvider and here code of SignalR:
#region SignalR
public async Task GetConnectSignalR()
{
var tokenResult = await TokenProvider.RequestAccessToken();
var apiURL = Configuration.GetValue<string>("SignalR:Url");
Console.WriteLine("Getting SignalR-Common from appsettings.json: " + apiURL);
try
{
if (tokenResult.TryGetToken(out var token))
{
_hubConnection = new HubConnectionBuilder()
.WithUrl($"{apiURL}", options =>
{
options.AccessTokenProvider = async () => await Task.FromResult(token.Value);
}).Build();
_hubConnection.On<NotificationCreateDto>("ReceiveMessage",
(message) =>
{
_messages.Add(message);
Console.WriteLine("Received message from server: " + message);
_ = GetNotificationListAsync();
});
await _hubConnection.StartAsync();
Console.WriteLine("SignalR-Common connected");
}
}
catch (Exception ex)
{
Console.WriteLine("Error starting HubConnection: " + ex.Message);
}
}
public async Task SendMessage()
{
try
{
await _hubConnection.SendAsync("SendMessage", _message);
_message = new NotificationCreateDto();
}
catch (Exception ex)
{
Console.WriteLine("Error sending message: " + ex.Message);
}
}
public void Dispose()
{
_ = _hubConnection?.DisposeAsync();
}
#endregion
Error: blazor.web.js:1 crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100] Unhandled exception rendering component: Cannot provide a value for property 'TokenProvider' on type 'HQSOFT.Common.Blazor.Pages.Component.HQSOFTNotifications'. There is no registered service of type 'Microsoft.AspNetCore.Components.WebAssembly.Authentication.IAccessTokenProvider'. System.InvalidOperationException: Cannot provide a value for property 'TokenProvider' on type 'HQSOFT.Common.Blazor.Pages.Component.HQSOFTNotifications'. There is no registered service of type 'Microsoft.AspNetCore.Components.WebAssembly.Authentication.IAccessTokenProvider'. Thanks Dharma Han Nguyen
Hi, I'm trying custom abp suite template to generate a custom method in Server.Repository.CustomCode.EfCoreRepository.Extended.txt. In the template I have used this variable: %%dto-field-names-with-type%%, and it seem abp suite didn't understand and generated that text instead of replacing by the correct content: Generated code: Here my custom content in the template: using System; using System.Collections.Generic; using System.Linq; using System.Linq.Dynamic.Core; using System.Threading; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore; using Volo.Abp.Domain.Repositories.EntityFrameworkCore; using Volo.Abp.EntityFrameworkCore; using %%solution-namespace%%.EntityFrameworkCore;
namespace %%solution-namespace%%.%%entity-namespace%% { public class EfCore%%entity-name%%Repository : EfCore%%entity-name%%RepositoryBase, I%%entity-name%%Repository { public EfCore%%entity-name%%Repository(IDbContextProvider<%%only-project-name%%DbContext> dbContextProvider) : base(dbContextProvider) { } public virtual async Task<List<%%entity-name%%>> GetListNoPagedAsync( string? filterText = null, %%dto-field-names-with-type%%%%<if:HasFilterableProperties>%%,%%</if:HasFilterableProperties>%% string? sorting = null, int maxResultCount = int.MaxValue, int skipCount = 0, CancellationToken cancellationToken = default) { var query = ApplyFilter((await GetQueryableAsync()), filterText%%<if:HasFilterableProperties>%%, %%</if:HasFilterableProperties>%%%%dto-field-names%%); query = query.OrderBy(string.IsNullOrWhiteSpace(sorting) ? %%entity-name%%Consts.GetDefaultSorting(false) : sorting); return await query.ToListAsync(cancellationToken); } } }
.NET 8.0 has been released with new feature of Blazor to support many option for rendering. How we can apply this feature in ABP Framework for Blazor UI to optimize performance and page loading?
Thanks, Dharma
I have an issue of display top-menu when switching from side-menu to top-menu:
In additional, how can I setup the footer component will be auto hide when user roll down the page: Thanks, Dharma