Redis is an open source external tool mainly used for caching purposes and the ABP framework uses it to improve performance (as a distributed cache) of the templates/applications.
You can either download it as zip file and run the
redis-server.exe
file or run via docker container. (https://redis.io/download)It should be up and running to run your application.
Hello @EngincanV , thanks for help, but may I know how to check redis working condition in visual studio
You can not check the Redis working condition via Visual Studio. You can check the logs to see your Redis server is running or not.
If it is not running, you can see a log like in the above image.
StackExchange.Redis.RedisConnectionException: It was not possible to connect to the redis server(s). UnableToConnect on 127.0.0.1:6379 ...
Hi @LawrenceKwan, as I've mentioned above you need to install the Redis and run it to be able to run the application.
Hi @maristides, Blazor Server template uses pages/components from both MVC and Blazor WASM. Therefore, it indirectly depends on both Volo.Abp.AspNetCore.Components.Web.LeptonTheme
and Volo.Abp.AspNetCore.Mvc.UI.Theme.Lepton
.
Is there a plan to change the structure for Blazor and provide a single UI project without having any MVC parts involved?
Currently, we don't plan to such a seperation.
Hi @bozkan, you can add resolutions
section to your package.json file and specify the version of the package you want.
For more info about resolutions system of yarn, see here
{
"name": "Acme.BookStore",
"dependencies": {
//...
}
"resolutions": {
"chart.js": "<specify_version>",
}
}
Then run the yarn
and gulp
command on your terminal.
Redis is an open source external tool mainly used for caching purposes and the ABP framework uses it to improve performance (as a distributed cache) of the templates/applications.
You can either download it as zip file and run the redis-server.exe
file or run via docker container. (https://redis.io/download)
It should be up and running to run your application.
Hello @EngincanV , thanks for help, but may I know how to check redis working condition in visual studio
You can not check the Redis working condition via Visual Studio. You can check the logs to see your Redis server is running or not.
If it is not running, you can see a log like in the above image.
StackExchange.Redis.RedisConnectionException: It was not possible to connect to the redis server(s). UnableToConnect on 127.0.0.1:6379 ...
Hi @rahul.patel@parsus.com, this question is not fully related to ABP.
However, I want to give you information about what you need to do. There are some actions you need to take.
1-) Get your clientId and clientSecret from Google Console API. 2-) Add the Microsoft.AspNetCore.Authentication.Google NuGet package to the app. 3-) Configure Google Authentication 4-) Install the google-signin npm package (https://github.com/react-native-google-signin/google-signin) (To use GoogleSignInButton component) and follow the steps (https://github.com/react-native-google-signin/google-signin#public-api)
Hi @LawrenceKwan, can you check the Redis is running or not? If it is not running please first run it and then run the three project again.
https://docs.abp.io/en/abp/latest/Startup-Templates/Application#pre-requirements
Hi @MILLENNIUM, you can check the Plug-In Modules documentation, i think this is what you are asking for.
And Is it possible to add entities dynamicly in runtime ?
There is an open source project named Abp.DynamicEntity, maybe you can use it to create entities dynamically on runtime.
Hi @bozkan, you can override the AddToOrganizationUnitAsync method of IdentityUserManager
class and inside of the method simply check the user is in any organization unit or not.
public async override Task AddToOrganizationUnitAsync(IdentityUser user, OrganizationUnit ou)
{
if (user.OrganizationUnits.Any())
{
return;
}
base.AddToOrganizationUnitAsync(user, ou);
}
IdentityUserManager
, see https://docs.abp.io/en/abp/latest/Customizing-Application-Modules-Overriding-Services#example-overriding-a-domain-service.
- Yes, I have these lines of code in DBContext.
- I have used IdentityUser and IIdentityUserRepository to gather data for Users and OrganizationUnit with these I want to join based on condition my userdefined two entities.
- I have constructed a class where I have called IIdentityUserRepository, IdentityUser objects using Get method.
Anything I need to change here.
Hi @radhikashrotre, sorry for the late response. Can you share the relevant method that you've tried to join the entities?
Hi @Shoba24, you also need to add return Page();
line after the Alerts.Danger(ex.Message);
to show the error in your UI.
public async Task <IActionResult> OnPostAsync()
{
try
{
//your code
}
catch(Exception ex)
{
Alerts.Danger(ex.Message);
return Page(); //show alert on the page
}
return Redirect("/PurchaseOrders");
}
For other alert types see https://docs.abp.io/en/abp/4.4/UI/AspNetCore/Page-Alerts#alert-types