Base solution for your next web application

Activities of "kansoftware"

I am using ABP version 13.0.0. I have enabled Redis cache in the application through the appsettings file. Redis is connected and working in the application.

However, I am facing two issues:-

  1. The application is responding very slowly.
  2. I am encountering connection RedisTimeoutException errors simultaneously (screenshot attached below).


I found a solution for the timeout issue, but I am unable to configure it in the ASP.NET Zero application due to its inbuilt code.

Here is the ASP.NET Zero code used to connect to Redis:

Link : "https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/src/Abp.RedisCache/Runtime/Caching/Redis/AbpRedisCacheDatabaseProvider.cs"

private ConnectionMultiplexer CreateConnectionMultiplexer() { return ConnectionMultiplexer.Connect(_options.ConnectionString); }

The solution I found is as follows:

var configurationOptions = new ConfigurationOptions { EndPoints = { RedisConnectionString }, Ssl = true, ConnectTimeout = 30000, // Increase timeout SyncTimeout = 30000, // Increase sync timeout ConnectRetry = 5, // Number of times to retry connecting ReconnectRetryPolicy = new ExponentialRetry(5000), // Exponential backoff policy KeepAlive = 30 }; return ConnectionMultiplexer.Connect(configurationOptions);

After implementing this solution, I did not face any RedisTimeoutException issues in my other custom applications.

However, I am still facing slowness in the entire application when Redis is used.

So, please provide both solution and customization as soon as possible.

I can see that the functionality for updating the profile picture is built-in. To update the profile picture, the UpdateProfilePicture function is used, which is part of the Profile App Service. To fetch the profile picture, the GetProfilePicture function is used, which is part of the Profile Controller. This works on our web application.

How can we use the same functionality for our mobile application, and what changes do we need to make?

I have enabled okta using OIDC. In web application it worked fine. But I have a mobile application as well. I have create a SPA application on okta for mobile app. They will be sending me the access token retrieved from Okta. I need to get the user info from that token and then generate my application token and return them. Is there any built in function? Or how can i do that?

I want to enable both okta and auth0 for a single tenant as some users may login through okta and some through auth0. I am having a multitenant application. Do I need to custom the code or there is a functionality in the base code. Could you please help me out how can I achieve that

I have enabled the AllowSocialLoginSettingsPerTenant and OpenId in appsettings.json. Also I have a configured OpenId for a tenant. Now when I am calling the below function for that tenant, the allproviders return null.

[HttpGet] public List<ExternalLoginProviderInfoModel> GetExternalAuthenticationProviders() {
var allProviders = _externalAuthConfiguration.ExternalLoginInfoProviders .Select(infoProvider => infoProvider.GetExternalLoginInfo()) .Where(IsSchemeEnabledOnTenant) .ToList(); return ObjectMapper.Map<List<ExternalLoginProviderInfoModel>>(allProviders); }

Basically I am getting null from GetExternalLoginInfo.

Could you please let me know how to resolve this, as I am stuck in this completely.

After project upgrade realtime notifications stopped working after we upgraded from 9 to 13

We checked and found there are 2 classes added in the CDP.core>> Notifications

  1. Email : EmailRealTimeNotifier.cs
  2. SMS : SmsRealTimeNotifier.cs

After checking documentation of aspnetboilerplate we also following class in the project https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/src/Abp.AspNetCore.SignalR/AspNetCore/SignalR/Notifications/SignalRRealTimeNotifier.cs

But still while we hit the _realTimeNotifier.SendNotificationsAsync it goes into EmailRealTimeNotifier.SendNotificationsAsync

Please help to fix this ASAP as its production issue.

Hi,

How we can configure seperate endpoints for Read (Multiple) and write operations

regards, Harshit

Question

when i m using RedisCache , i m getting an issue in WidgetDefinitionCacheManager class on GetAll function but it is working fine with inMemory cache , General details about the product - 1] asp.net zero version - 13.0.0 2] "Abp.AspNetCore" Version="9.2.2" 3] Abp.RedisCache" Version="9.2.2"

For reference please find below images - in this image i m getting inMemory cach and it is working fine but

in this i m getting RedisCache and this is giving me error

NotSupportedException: Deserialization of interface types is not supported. Type 'Abp.Authorization.IPermissionDependency'

Focus is lost in abp.confirm.message dialog when its show on modal pop.

We are facing this issue after upgrading project from Version(9.1.0) to Version(12.0.0).

abp.notify.warn(data.message) and abp.notify.error(data.message) gives a blank badge at the bottom of the screen while abp.notify.success(data.message) and abp.notify.info(data.message) works on the same page. path of js is : \src\CDP.Web.Mvc\wwwroot\view-resources\Views\FolderName\File.js

We are facing this issue after upgrading project from Version(9.1.0) to Version(13.0.0).

For reference find below image -

Showing 1 to 10 of 94 entries