Actually I’m looking to generate additional Angular UI components for our current project. The current Razor view-generated pages UI doesn't quite meet our expectations. Can you recommend an easy-to-integrate UI framework that works well with the Lepton Pro theme?
ABP Framework version: v8.0.0
UI Type: MVC + Flutter
Database System: MongoDB
Tiered (for MVC) or Auth Server Separated (for Angular): no
Below is the entity with recursion
how to add mongodb with hangfire? there is only one example with usesql as db provider.
and in dbmigrator i am getting error
System.ArgumentNullException: 'Value cannot be null. (Parameter 'normalizedName')'
at
public override async Task ProceedAsync()
{
base.ReturnValue = await Proceed(base.Invocation, ProceedInfo).ConfigureAwait(continueOnCapturedContext: false);
}
please help me on this asap
ABP Framework version: v8.0.0
UI Type: MVC + Flutter
Database System: MongoDB
Tiered (for MVC) or Auth Server Separated (for Angular): no
Below is the entity with recursion
public abstract class ChatResourceDtoBase : FullAuditedEntityDto<Guid>, IHasConcurrencyStamp
{
public string? ChipTitle { get; set; }
public string? ChipTitleArabic { get; set; }
public string? Color { get; set; }
public string? BackColor { get; set; }
public string? Action { get; set; }
public string? ExtraField { get; set; }
public Guid? ChatResourceId { get; set; }
public string ConcurrencyStamp { get; set; } = null!;
}
And here is the API
[Authorize(MyDhobiPermissions.ChatResources.Default)]
public abstract class ChatResourcesAppServiceBase : ApplicationService
{
protected IDistributedCache<ChatResourceExcelDownloadTokenCacheItem, string> _excelDownloadTokenCache;
protected IChatResourceRepository _chatResourceRepository;
protected ChatResourceManager _chatResourceManager;
public ChatResourcesAppServiceBase(IChatResourceRepository chatResourceRepository, ChatResourceManager chatResourceManager, IDistributedCache<ChatResourceExcelDownloadTokenCacheItem, string> excelDownloadTokenCache)
{
_excelDownloadTokenCache = excelDownloadTokenCache;
_chatResourceRepository = chatResourceRepository;
_chatResourceManager = chatResourceManager;
}
public virtual async Task<PagedResultDto<ChatResourceWithNavigationPropertiesDto>> GetListAsync(GetChatResourcesInput input)
{
var totalCount = await _chatResourceRepository.GetCountAsync(input.FilterText, input.ChipTitle, input.ChipTitleArabic, input.Color, input.BackColor, input.Action, input.ExtraField, input.ChatResourceId);
var items = await _chatResourceRepository.GetListWithNavigationPropertiesAsync(input.FilterText, input.ChipTitle, input.ChipTitleArabic, input.Color, input.BackColor, input.Action, input.ExtraField, input.ChatResourceId, input.Sorting, input.MaxResultCount, input.SkipCount);
return new PagedResultDto<ChatResourceWithNavigationPropertiesDto>
{
TotalCount = totalCount,
Items = ObjectMapper.Map<List<ChatResourceWithNavigationProperties>, List<ChatResourceWithNavigationPropertiesDto>>(items)
};
}
public virtual async Task<ChatResourceWithNavigationPropertiesDto> GetWithNavigationPropertiesAsync(Guid id)
{
return ObjectMapper.Map<ChatResourceWithNavigationProperties, ChatResourceWithNavigationPropertiesDto>
(await _chatResourceRepository.GetWithNavigationPropertiesAsync(id));
}
Since GetListAsync is returning 0 items but on creation data is getting saved properly in database , please help me resolve this issue ,what could be the cause and how can i resolve it ?
ABP Framework version: v8.0.0
UI Type: MVC + Flutter
Database System: MongoDB
Tiered (for MVC) or Auth Server Separated (for Angular): no
Exception message and full stack trace: below is the error and hub code with flutter controller code
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Error parsing handshake response: 'type 'Null' is not a subtype of type 'String' in type cast'
public class ChatMaiHub : AbpHub
{
private readonly IIdentityUserRepository _identityUserRepository;
private readonly ILookupNormalizer _lookupNormalizer;
public ChatMaiHub(IIdentityUserRepository identityUserRepository, ILookupNormalizer lookupNormalizer)
{
_identityUserRepository = identityUserRepository;
_lookupNormalizer = lookupNormalizer;
}
public async Task SendMessage(string targetUserName, string message)
{
var targetUser = await _identityUserRepository.FindByNormalizedUserNameAsync(_lookupNormalizer.NormalizeName(targetUserName));
message = $"{CurrentUser.UserName}: {message}";
await Clients
.User(targetUser.Id.ToString())
.SendAsync("ReceiveMessage", message);
}
}
below is flutter controller
import 'package:mailaundry/presentation/models/authview_model.dart';
import 'package:logging/logging.dart';
import 'package:signalr_netcore/signalr_client.dart';
import '../../mylaundryhub/mylaundryhub_gloabelclass/mylaundryhub_prefsname.dart';
class ChatController {
late HubConnection _hubConnection;
final Function(String message) onMessageReceived;
AuthViewModel authViewModel = AuthViewModel();
final transportProtLogger = Logger("SignalR - transport");
final hubProtLogger = Logger("SignalR - hub");
Future<String> getValidAccessToken() async {
// Ensure this method handles the potential null case appropriately.
return await authViewModel.getValidAccessToken() ?? '';
}
ChatController({required this.onMessageReceived}) {
var httpOptions = HttpConnectionOptions(
logger: transportProtLogger,
transport: HttpTransportType.ServerSentEvents,
accessTokenFactory: () async => await getValidAccessToken());
_hubConnection = HubConnectionBuilder()
.withUrl("$api/signalr-hubs/chat-mai", options: httpOptions)
.configureLogging(hubProtLogger)
.build();
_hubConnection.on('ReceiveMessage', (arguments) {
if (arguments != null && arguments.isNotEmpty) {
onMessageReceived(arguments[0] as String);
}
});
_hubConnection.start();
//.catchError((error) {
//print('Connection Failed. Error: $error');
//});
}
Future<void> sendMessage(String targetUserName, String message) async {
if (_hubConnection.state == HubConnectionState.Connected) {
await _hubConnection
.invoke('SendMessage', args: [targetUserName, message]);
} else {
print('Connection is not established. Message not sent.');
// Optionally, implement a retry mechanism or inform the user.
}
}
}
I hosted production version on cloud iis but now app is not starting getting following in log
Starting web host.
2024-03-03 12:14:52.873 +00:00 [FTL] Host terminated unexpectedly!
Volo.Abp.AbpInitializationException: An error occurred during ConfigureServicesAsync phase of the module Volo.Abp.OpenIddict.AbpOpenIddictAspNetCoreModule, Volo.Abp.OpenIddict.AspNetCore, Version=8.0.0.0, Culture=neutral, PublicKeyToken=null. See the inner exception for details.
---> System.Security.Cryptography.CryptographicException: The system cannot find the file specified.
at System.Security.Cryptography.X509Certificates.CertificatePal.FilterPFXStore(ReadOnlySpan1 rawData, SafePasswordHandle password, PfxCertStoreFlags pfxCertStoreFlags) at System.Security.Cryptography.X509Certificates.CertificatePal.FromBlobOrFile(ReadOnlySpan
1 rawData, String fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
at System.Security.Cryptography.X509Certificates.X509Certificate..ctor(String fileName, String password, X509KeyStorageFlags keyStorageFlags)
at System.Security.Cryptography.X509Certificates.X509Certificate2..ctor(String fileName, String password)
at Microsoft.Extensions.DependencyInjection.OpenIddictServerBuilderExtensions.AddProductionEncryptionAndSigningCertificate(OpenIddictServerBuilder builder, String fileName, String passPhrase)
at MyDhobi.Web.MyDhobiWebModule.<>c.<PreConfigureServices>b__0_3(OpenIddictServerBuilder serverBuilder) in
**ABP Framework version: v8.0.0
UI Type: MVC
Database System: MongoDB
Tiered (for MVC) or Auth Server Separated (for Angular): no
Exception message and full stack trace: let me know if you need complete log**
ABP Framework version: v8.0.0
UI Type: MVC but this error is while consuming api on flutter app
Database System: MongoDB
Tiered (for MVC) or Auth Server Separated (for Angular): no
Exception message and full stack trace:
when i am trying to access api using bearer token its responding with login page
2024-01-03 05:14:33.006 +00:00 [INF] Initialized all ABP modules. 2024-01-03 05:14:33.250 +00:00 [INF] Initializing UI Database 2024-01-03 05:14:35.056 +00:00 [INF] Saving healthchecks configuration to database 2024-01-03 05:14:35.224 +00:00 [INF] Saving external localizations... 2024-01-03 05:14:35.430 +00:00 [INF] Start processing HTTP request GET https://..com/health-status 2024-01-03 05:14:35.434 +00:00 [INF] Sending HTTP request GET https://..com/health-status 2024-01-03 05:14:35.726 +00:00 [INF] Application started. Press Ctrl+C to shut down. 2024-01-03 05:14:35.726 +00:00 [INF] Hosting environment: Production 2024-01-03 05:14:35.726 +00:00 [INF] Content root path: C:\Users\Administrator\Desktop\laun 2024-01-03 05:14:36.239 +00:00 [INF] Request starting HTTP/1.1 GET https://..com/ - null null 2024-01-03 05:14:37.512 +00:00 [INF] Request starting HTTP/1.1 GET https://..com/health-status - null null 2024-01-03 05:14:40.119 +00:00 [INF] Executing endpoint 'Health checks' 2024-01-03 05:14:40.189 +00:00 [INF] Request finished HTTP/1.1 GET https://..com/ - 302 null null 3950.5949ms 2024-01-03 05:14:40.192 +00:00 [INF] Request reached the end of the middleware pipeline without being handled by application code. Request path: GET https://..com/, Response status code: 302 2024-01-03 05:14:40.337 +00:00 [INF] Request starting HTTP/1.1 GET https://..com/Error?httpStatusCode=404 - null null 2024-01-03 05:14:40.362 +00:00 [INF] Executing endpoint 'Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController.Index (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared)' 2024-01-03 05:14:40.403 +00:00 [INF] Route matched with {action = "Index", controller = "Error", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Index(Int32) on controller Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared). 2024-01-03 05:14:40.891 +00:00 [INF] Executing ViewResult, running view ~/Views/Error/404.cshtml. 2024-01-03 05:14:41.003 +00:00 [INF] Bundling __bundles/Views.Error.DefaultErrorComponent.default.F15FCDEA56EC024E1CDCD86CA6B586D8.css (1 files) 2024-01-03 05:14:41.234 +00:00 [INF] > Minified /Views/Error/DefaultErrorComponent/default.css (230 bytes -> 168 bytes) 2024-01-03 05:14:41.237 +00:00 [INF] Bundled __bundles/Views.Error.DefaultErrorComponent.default.F15FCDEA56EC024E1CDCD86CA6B586D8.css (168 bytes) 2024-01-03 05:14:41.400 +00:00 [INF] Bundling __bundles/LeptonX.Global.3253AE0A9501A0665DAC7014DA5B2ED8.css (18 files) 2024-01-03 05:14:41.425 +00:00 [INF] > Minified /libs/abp/core/abp.css (1331 bytes -> 868 bytes)