Starts in:
2 DAYS
15 HRS
29 MIN
57 SEC
Starts in:
2 D
15 H
29 M
57 S

Activities of "korolei"

Answer

Hi,

Looks like in ABP 5.1.2 'ImpersonatorTenantName' & 'ImpersonatorUserName' properties was not removed from AbpAuditLogs entity, and it's causing following exception: Failed executing DbCommand (7ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (Size = 64), @p17='?' (DbType = Guid), @p18='?' (Size = 256), @p19='?' (DbType = Guid), @p20='?' (Size = 64), @p21='?' (Size = 256), @p22='?' (DbType = Guid), @p23='?' (Size = 256)], CommandType='Text', CommandTimeout='30'] SET NOCOUNT ON; INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorTenantName], [ImpersonatorUserId], [ImpersonatorUserName], [TenantId], [TenantName], [Url], [UserId], [UserName]) VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21, @p22, @p23);

Is it something we can fix on our side or you'll provide fix for this?

Hi, We're using Blazor Server options. Here is dependencies, defined in BlazorModule: Commenting out that dependency, would lead to the following exception: DependencyResolutionException: None of the constructors found with 'Autofac.Core.Activators.Reflection.DefaultConstructorFinder' on type 'Volo.Abp.LanguageManagement.DatabaseLanguageProvider' can be invoked with the available services and parameters: Cannot resolve parameter 'Volo.Abp.LanguageManagement.ILanguageRepository languageRepository' of constructor 'Void .ctor(Volo.Abp.LanguageManagement.ILanguageRepository, Volo.Abp.ObjectMapping.IObjectMapper1[Volo.Abp.LanguageManagement.LanguageManagementDomainModule], Volo.Abp.Caching.IDistributedCache1[Volo.Abp.LanguageManagement.LanguageListCacheItem], Microsoft.Extensions.Options.IOptions`1[Volo.Abp.Localization.AbpLocalizationOptions])'. Autofac.Core.Activators.Reflection.ReflectionActivator.GetAllBindings(ConstructorBinder[] availableConstructors, IComponentContext context, IEnumerable

DependencyResolutionException: An exception was thrown while activating Volo.Abp.LanguageManagement.DatabaseLanguageProvider.

  • ABP Framework version: v5.0.1
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:N/A
  • Steps to reproduce the issue:"N/A

Hi guys, When ABP layered solution gets created, **BlazorModule **shows dependency on EntityFrameworkCoreModule. What's the reason for a such dependency?

Thanks!

  • ABP Framework version: v4.4.2
  • UI type: Blazor
  • DB provider: EF Core

Hi guys,

is it possible to use IStringLocalizer in DataSeedContributor, so I could convert LocalizableString into actual string from localization resource? I'm using following method to get value, but StringLocalized doesn't have any items to get value: private string DeLocalize(LocalizableString localizedString) { var l = _localizerFactory.Create(localizedString.ResourceType); return l[localizedString.Name]; }

    Thanks

Thank you again. Those are the good points against extending entity. I like your suggestion and we're will follow it.

Thank you for your reply. I said the same to our business people, but they want to have 2 extra properties: Notes & Description in LanguageText entity, so when they need to change any localized text, they'd know where it is used on the site and what it for. I'd go in this case with defining new entity, which would derive from LanguageText & IHasExtraProperty interface and then map it to LanguageText table, but would like to see your suggestion.

Thanks!

Hi, is it possible to extend/add extra properties to 'LanguageText' entity, when it does not have 'ExtendedProperty' property?

Hi,

Thanks for your reply. I did look at that information before. Adding 'ITransientDependency' interface to CustomSettingsProvider class, solved the issue. I provided PR for this: https://github.com/abpframework/abp/pull/10636

Hi guys,

I'm trying to setup custom Setting Management Provider, as in your guide:https://docs.abp.io/en/abp/latest/Modules/Setting-Management, but get the following exception: ComponentNotRegisteredException: The requested service 'CustomSettingProvider' has not been registered.

  • ABP Framework version: v4.4

  • UI type:Blazor

  • DB provider: EF Core

  • Tiered (MVC) or Identity Server Separated (Angular): yes

  • Exception message and stack trace:ComponentNotRegisteredException: The requested service CustomSettingProvider' has not been registered. * Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable<Parameter> parameters) Volo.Abp.SettingManagement.SettingManager+<>c__DisplayClass12_0.<.ctor>b__1(Type c) System.Linq.Enumerable+SelectIListIterator<TSource, TResult>.ToList() Volo.Abp.SettingManagement.SettingManager+<>c__DisplayClass12_0.<.ctor>b__0() System.Lazy<T>.ViaFactory(LazyThreadSafetyMode mode) System.Lazy<T>.ExecutionAndPublication(LazyHelper executionAndPublication, bool useDefaultConstructor) System.Lazy<T>.CreateValue() Volo.Abp.SettingManagement.SettingManager.GetOrNullInternalAsync(string name, string providerName, string providerKey, bool fallback) Volo.Abp.Account.ExternalProviders.ExternalProviderSettingsHelper.GetSettingsListOrNullAsync(string providerName, string providerKey) Volo.Abp.Account.ExternalProviders.ExternalProviderSettingsHelper.GetSettingsAsync(ExternalProviderDefinition definition, string providerName, string providerKey) Volo.Abp.Account.ExternalProviders.ExternalProviderSettingsHelper.GetByNameAsync(string name, bool fallBackToHost) Volo.Abp.Account.ExternalProviders.AccountExternalProviderAppService.GetByNameAsync(GetByNameInput input) Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous<TResult>(IInvocation invocation, IInvocationProceedInfo proceedInfo) Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue<TResult>.ProceedAsync() Volo.Abp.GlobalFeatures.GlobalFeatureInterceptor.InterceptAsync(IAbpMethodInvocation invocation) Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter<TInterceptor>.InterceptAsync<TResult>(IInvocation invocation, IInvocationProceedInfo proceedInfo, Func<IInvocation, IInvocationProceedInfo, Task<TResult>> proceed) Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous<TResult>(IInvocation invocation, IInvocationProceedInfo proceedInfo) Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue<TResult>.ProceedAsync() Volo.Abp.Auditing.AuditingInterceptor.ProceedByLoggingAsync(IAbpMethodInvocation invocation, IAuditingHelper auditingHelper, IAuditLogScope auditLogScope) Volo.Abp.Auditing.AuditingInterceptor.ProcessWithNewAuditingScopeAsync(IAbpMethodInvocation invocation, AbpAuditingOptions options, ICurrentUser currentUser, IAuditingManager auditingManager, IAuditingHelper auditingHelper) Volo.Abp.Auditing.AuditingInterceptor.ProcessWithNewAuditingScopeAsync(IAbpMethodInvocation invocation, AbpAuditingOptions options, ICurrentUser currentUser, IAuditingManager auditingManager, IAuditingHelper auditingHelper) Volo.Abp.Auditing.AuditingInterceptor.InterceptAsync(IAbpMethodInvocation invocation) Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter<TInterceptor>.InterceptAsync<TResult>(IInvocation invocation, IInvocationProceedInfo proceedInfo, Func<IInvocation, IInvocationProceedInfo, Task<TResult>> proceed) Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous<TResult>(IInvocation invocation, IInvocationProceedInfo proceedInfo) Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue<TResult>.ProceedAsync() Volo.Abp.Validation.ValidationInterceptor.InterceptAsync(IAbpMethodInvocation invocation) Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter<TInterceptor>.InterceptAsync<TResult>(IInvocation invocation, IInvocationProceedInfo proceedInfo, Func<IInvocation, IInvocationProceedInfo, Task<TResult>> proceed) Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous<TResult>(IInvocation invocation, IInvocationProceedInfo proceedInfo) Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue<TResult>.ProceedAsync() Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation) Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter<TInterceptor>.InterceptAsync<TResult>(IInvocation invocation, IInvocationProceedInfo proceedInfo, Func<IInvocation, IInvocationProceedInfo, Task<TResult>> proceed) Volo.Abp.Account.Public.Web.ExternalProviders.AccountExternalProviderOptionsManager<TOptions>.OverrideOptionsAsync(string name, TOptions options) Volo.Abp.Account.Public.Web.ExternalProviders.AbpAccountAuthenticationRequestHandler<TOptions, THandler>.InitializeAsync(AuthenticationScheme scheme, HttpContext context) Microsoft.AspNetCore.Authentication.AuthenticationHandlerProvider.GetHandlerAsync(HttpContext context, string authenticationScheme) IdentityServer4.Hosting.FederatedSignOut.FederatedSignoutAuthenticationHandlerProvider.GetHandlerAsync(HttpContext context, string authenticationScheme) Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) Volo.Abp.AspNetCore.Tracing.AbpCorrelationIdMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) Microsoft.AspNetCore.Builder.UseMiddlewareExtensions+<>c__DisplayClass6_1+<<UseMiddlewareInterface>b__1>d.MoveNext() Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context) Microsoft.AspNetCore.RequestLocalization.AbpRequestLocalizationMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) Microsoft.AspNetCore.Builder.UseMiddlewareExtensions+<>c__DisplayClass6_1+<<UseMiddlewareInterface>b__1>d.MoveNext() Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)

  • Steps to reproduce the issue:"

* 1. Create CustomSettingProvider:
    public class CustomSettingProvider: SettingManagementProvider
    {
        public override string Name => "Custom";

        public CustomSettingProvider(ISettingManagementStore store) 
            : base(store)
        {
        }
    }
    2. Register in DomainModule:
                Configure<SettingManagementOptions>(options =>
                {
                    options.Providers.Add<CustomSettingProvider>();
                });

Hello, I need to extend existing functionality in 'text-templates' page in Blazor & EF project. According to your guide, I need to create my own page from original one in the same directory with the same name. My question is where to find original 'text-templates' page (or similar ones)?

Thanks.

Showing 1 to 10 of 13 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06