Activities of "hussein"

  • ABP Framework version: v7
  • UI type: MVC
  • DB provider: EF Core / MongoDB
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

when I change the language to Arabic (RTL) , the issue appears in the localization of numbers such as the "," instead of "."

i added the following code:

`

public override void OnApplicationInitialization(ApplicationInitializationContext context)
    {
        var app = context.GetApplicationBuilder();
        var env = context.GetEnvironment();
        if (env.IsDevelopment())
        {
            app.UseDeveloperExceptionPage();
        }
        var dateformat = new DateTimeFormatInfo
        {
            ShortDatePattern = "MM/dd/yyyy",
            LongDatePattern = "MM/dd/yyyy hh:mm:ss tt"
        };
        var defaultDateCulture = "ar";
        var ar = new CultureInfo(defaultDateCulture);
        ar.NumberFormat.NumberDecimalSeparator = ".";
        ar.NumberFormat.CurrencyDecimalSeparator = ".";
        ar.DateTimeFormat = dateformat;
        var en = new CultureInfo("en");
        en.NumberFormat.NumberDecimalSeparator = ".";
        en.NumberFormat.CurrencyDecimalSeparator = ".";
        en.DateTimeFormat = dateformat;
        var supportedCultures = new[]
        {
               ar,
               en,
            };
        app.UseAbpRequestLocalization(options =>
        {
            options.DefaultRequestCulture = new RequestCulture("ar");
            options.SupportedCultures = supportedCultures;
            options.SupportedUICultures = supportedCultures;
            options.RequestCultureProviders = new List<IRequestCultureProvider>
                {
                    new QueryStringRequestCultureProvider(),
                    new CookieRequestCultureProvider()
                };
        });
        app.UseAbpRequestLocalization();

the above code didn't work for me but I use to add the following line on each razor page

System.Threading.Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.InvariantCulture;

my question here: how i configure my app to take it automatically instead of modifying the code for each page? and I want to make the digits count after the decimal point in a specific format for all language

question #2: can i only use the following code in the other language?do i need to make extra step to work instead of the above code

abp.localization.currentCulture
{
  "displayName": "Arabic",
  "englishName": "Arabic",
  "threeLetterIsoLanguageName": "arb",
  "twoLetterIsoLanguageName": "ar",
  "isRightToLeft": true,
  "cultureName": "ar",
  "name": "ar",
  "nativeName": "Arabic",
  "formatNumber":" <<<<<<<<?
  "dateTimeFormat": {
    "calendarAlgorithmType": "SolarCalendar",
    "dateTimeFormatLong": "dddd, MMMM d, yyyy",
    "shortDatePattern": "M/d/yyyy",
    "fullDateTimePattern": "dddd, MMMM d, yyyy h:mm:ss tt",
    "dateSeparator": "/",
    "shortTimePattern": "h:mm",
    "longTimePattern": "h:mm:ss tt"
  }
}
  • ABP Framework version: v6.0.2
  • UI type: MVC
  • DB provider: EF Core / MongoDB
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

could you guide us on how to integrate SQL Server Reporting Services (SSRS) with Abp? thanks in advance :)

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

1- I want to customize the user UI, to add a new tab page when editing the user

2- how to prevent a user who has the privilege to manage the users from deleting the Admin user or Sys Role?

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.

If you're creating a bug/problem report, please include followings:

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

my worker as the following:

 public interface IBillingWorker : IHangfireBackgroundWorker
 {
 }
 
 [ExposeServices(typeof(IBillingWorker))]
 public class BillingWorker : HangfireBackgroundWorkerBase, IBillingWorker
 {
     private readonly ILogger _logger;
     private readonly IBillingBatchRepository _billingBatchRepository;
     public BillingWorker(ILogger logger, IBillingBatchRepository billingBatchRepository)
     {
         RecurringJobId = nameof(BillingWorker);
         CronExpression = Cron.Minutely();
         _logger = logger;
         _billingBatchRepository = billingBatchRepository;
         }
         
         [UnitOfWork(isTransactional: false)]
         public override async Task DoWorkAsync(CancellationToken cancellationToken = default)
         {
             _logger.LogInformation("start billingWorker..!");
             var querable = await _billingBatchRepository.GetQueryableAsync();
             var query = querable.Where(q = q.EndTime == default && q.StartTime == default
             && q.ExecutionTime <= DateTime.Now
             ).Select(x = x.Id).ToList();
             _logger.LogInformation($"Executed billingWorker..!: return {query.Count}");
             await Task.CompletedTask;
         }
    }

and i registred it as the following:

 public override void OnApplicationInitialization(ApplicationInitializationContext context)
 {
     AsyncHelper.RunSync(async () =
     {
        await context.AddBackgroundWorkerAsync();
     });
}



[DependsOn(typeof(AbpBackgroundJobsModule))]
[DependsOn(typeof(AbpBackgroundJobsHangfireModule))]
[DependsOn(typeof(AbpBackgroundWorkersHangfireModule))]
public class BstUtilityBackgroundServicesModule : AbpModule
{
...
}

once the worker is started it gives the following error:

System.ObjectDisposedException: Cannot access a disposed context instance. A common cause of this error is disposing a context instance that was resolved from dependency injection and then later trying to use the same context instance elsewhere in your application. This may occur if you are calling 'Dispose' on the context instance, or wrapping it in a using statement. If you are using dependency injection, you should let the dependency injection container take care of disposing context instances. Object name: 'BillingDbContext'.

if i use the following code

using (var uow = _unitOfWorkManager.Begin())
{
 var querable = await _billingBatchRepository.GetQueryableAsync();
 var query = querable.Where(q => q.EndTime == default && q.StartTime == default
 && q.ExecutionTime<=DateTime.Now
 ).Select(x => x.Id);
 list = await AsyncExecuter.ToListAsync(query);
}

it keeps returning an empty list!! , but if I call it manually from the appservice , then it will return the data

Note that I BillingDbContext is in another module

i'll appreciate if you can provide a working sample with best practices on how we can use hangfire with ABP ,,,, noting that I read the documents files but had no luck because if I use it in appservice, not in the domain it will give an authorization field even if I use [AllowAnonymous]

If you're creating a bug/problem report, please include the followings:

  • ABP Framework version: v6.0
  • UI type: MVC
  • DB provider: EF Core / sqlserver
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

I follow the link in the community about hiding Tenant Switch from an ABP Framework Login page and it works without selecting the tenant from the login now I have a problem accessing the application from an API call (mobile flutter) , I don't want the end user to select the tenant, i just want to resolve the tenant name by his login id as done in the UI-login page I'll appreciate your help with this case thanks in advance

BCheck the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.

If you're creating a bug/problem report, please include followings:

  • ABP Framework version: v5.3.2
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes / no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"
  1. Use suite -> create a new solution, Blazor Web Assembly Project with Progressive Web Application ( want to support offline mode) and SQL Server db options
  2. run DbMigrator
  3. run the host project it works with no delay, then the blazor project it took around 20 seconds to load

my issues here are:

  1. it is very slow

  2. then after I publish it to IIS, the host works, but the blazor couldn't work after the login page , could you guide me the details steps on how to configure it correctly, i already followup most of the answers here on the support page and the documentation but I didn't success

If you're creating a bug/problem report, please include the following:

  • ABP Framework version: v5
  • UI type:MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): MVC
  • Exception message and stack trace:
  • Steps to reproduce the issue:" i want to connect with the application API from the mobile flutter app (or even postman for testing), currently, i send the login credentials, and the API return success with cookie: as the following Login-Response status: 200 I/flutter (22205): Login-Response body: {"result":1,"description":"Success"} I/flutter (22205): Login-Response header: {x-powered-by: ASP.NET, cache-control: no-cache,no-store, set-cookie: idsrv.session=EDE9D7567F90AF7FAD2A31E496245202; path=/; secure; samesite=none,.AspNetCore.Identity.Application=CfDJ8GhZ26jUH4hCteGIT55Ww8Orv1wfkSbC_Axzu-DOG4eTj-O_ZRR6N91g21rYFQRCVTrOMN6rlKoMR4VAm8OQBXKxV0I2Hi0z-xKAptHF0dmPIHEexEVnkW3hNNcqQTZmQx33By6RigcnJkjFMLLshbYDiwyHbFdBe1OyNeJWZdEc9a5GR3Xdb5gc5n58E- ... etc

then i set the following: cookie = .AspNetCore.Identity.Application=CfDJ8GhZ26jUH4hCteGIT55Ww8Orv1wfkSbC_Axzu-DOG4eTj-O_ZRR6N91g21rYFQRCVTrOMN6rlKoMR4VAm8OQBXKxV0I2Hi0z-xKAptHF0dmPIHEexEVnkW3hNNcqQTZmQx33By6RigcnJkjFMLLshbYDiwyHbFdBe1OyNeJWZdEc9a5GR3Xdb5gc5n58E

then I make a call to get the data from the service and the data is returned back no issue: var header = { "Content-Type": "application/json", "Accept": "application/json", "Cookie": cookie }; now when i call the POST method using the same header with the required body data it keeps giving me Response status code: 302 if I take the JSON data (the body ) and post it using swagger it works i have read many articles inside support and abp.io but i got stuck i didn't understand it correctly

MY QUESTION IS:

i think i should use requestverificationtoken or token not cookie
please need clear steps on how I can reach a good solution, knowing that I created my ( MVC simple arch. not tired) application as a template without any change in the configuration from abp suite

also, I noted each time especially if fail in login it returns Html login page instead of JSON data , how i can return JSON not HTML if an error happened thanks in advance

Showing 1 to 7 of 7 entries
Made with ❤️ on ABP v9.1.0-rc.1. Updated on January 17, 2025, 14:13