hi
Do you have appsettings.secrets.json and AbpLicenseCode inside your app?
Can your app run successfully without window service ?
hi
The operation was canceled.
The reason I can think of is that the caller cancels the http request, so the server will have this error.
HttpContext.RequestAborted
https://www.meziantou.net/handling-aborted-requests-in-asp-net-core.htm
hi
Can you share your project? So I can check your code.
liming.ma@volosoft.com
hi
Can you share a simple project that reproduces your problem?
liming.ma@volosoft.com
I will download and check it.
hi
Can you try to use cli to download?
abp get-source Volo.Abp.LeptonXTheme.Pro
specify version
abp get-source Volo.Abp.LeptonXTheme.Pro --version 3.0.1
hi
The language texts are multiple tenancy. Different translation texts can be used between each tenant and host.
You can use abp CLI to translate your culture.
abp translate -c sr -r en
This command creates a file in the same folder, named abp-translation.json. Open this file in your favorite editor and fill the missing text values.
Backup
abp-translation.jsonfile.
Once you done the translation, use abp translate -a command to apply changes to the related files.
hi
Wanted to deploy the app as a window service with kestrel server. But facing following error when starting the server,
Are there any error logs on logs.txt and Win Event Viewer?
Thanks. I will update the framework code.
hi
Do you have any example that I can follow to implement API bearer token?
There are some examples on Google. It's simple
https://medium.com/@vndpal/how-to-implement-jwt-token-authentication-in-net-core-6-ab7f48470f5c https://www.c-sharpcorner.com/article/jwt-json-web-token-authentication-in-asp-net-core/ https://www.youtube.com/watch?v=mgeuh8k3I4g
You can test this in a new template project, share your project with me if you have any problems.
hi
Can you test this?
protected List<PermissionGrantInfoDto> GetChildPermissions(PermissionGroupDto permissionGroup, PermissionGrantInfoDto permission)
{
var childPermissions = new List<PermissionGrantInfoDto>();
GetChildPermissions(childPermissions, permissionGroup.Permissions, permission);
return childPermissions;
}
protected void GetChildPermissions(List<PermissionGrantInfoDto> allChildPermissions, List<PermissionGrantInfoDto> permissions, PermissionGrantInfoDto permission)
{
var childPermissions = permissions.Where(x => x.ParentName == permission.Name).ToList();
if (childPermissions.Count == 0)
{
return;
}
allChildPermissions.AddRange(childPermissions);
foreach (var childPermission in childPermissions)
{
GetChildPermissions(allChildPermissions, permissions, childPermission);
}
}