Activities of "berkansasmaz"

2021-12-30 11:36:21.976 +10:00 [WRN] ERR Error running script (call to f_3915ee22fda531a1d5661f2523d0443fd35ff0a4): @user_script:2: @user_script: 2: Wrong number of args calling Redis command From Lua script 
StackExchange.Redis.RedisServerException: ERR Error running script (call to f_3915ee22fda531a1d5661f2523d0443fd35ff0a4): @user_script:2: @user_script: 2: Wrong number of args calling Redis command From Lua script 
   at Microsoft.Extensions.Caching.StackExchangeRedis.RedisCache.SetAsync(String key, Byte[] value, DistributedCacheEntryOptions options, CancellationToken token)
   at Volo.Abp.Caching.DistributedCache`2.<>c__DisplayClass51_0.<<SetAsync>g__SetRealCache|0>d.MoveNext()
2021-12-30 11:36:21.977 +10:00 [WRN] Could not find IdentityClientConfiguration for AbpMvcClient. Either define a configuration for AbpMvcClient or set a default configuration.

I think the problem is caused by your Redis server.

But just to be sure, I downloaded and tested the template below.

abp new TestBszTiered -t app-pro -u blazor-server --database-provider mongodb -csf --tiered

PS: ABP CLI tool version: 5.0.1

After a little research, I found a resource that had the same problem as you, maybe it will help => https://github.com/StackExchange/StackExchange.Redis/issues/1904#issuecomment-982500351

Yes, mandatory, if the application uses ABP 5.0.*'s packages, Volo.Abp.EntityFrameworkCore.Oracle package should also have 5.0.* version.

As you may have noticed, we are getting this error right now because of the Volo.Abp.EntityFrameworkCore.Oracle package is not available for ABP 5.0.* .

Let's leave this issue open if you want so you can reply after the package is available for ABP 5.0.* ?

Hi 👋

Volo.Abp.EntityFrameworkCore.Oracle is not currently available for ABP 5.0. It will probably be available in the next version.

I have two questions:

  1. Do you get an error when you run YourProjectName.DbMigrator project after successfully running the dotnet ef migrations add ... command?
  2. Do you get the error only when using the Oracle database in ABP 5.0?

I am using the image of Redis with version 6.2.5.

Any chance of sharing the application you're having an error with, deleting all bin/obj and libs folders?

Please provide the relevant log record for the MicroService Blazor-Server and a minimal, reproducible example, if any, would be greatly appreciated.

PS: BTW, my Redis server version is the same as in the image you shared.

Hi,

I tested what you said for the Microservice Blazor-Wasm and Microservice Blazor-Server templates. Here are my steps:

  1. abp new MicroTemp -t microservice-pro -csf -u blazor or abp new MicroTemp -t microservice-pro -csf -u blazor-server

  2. cd MicroTemp

  3. dotnet build /graphBuild

  4. cd shared/MicroTem.DbMigrator

  5. cd .. && cd ..

  6. I ran the script ./run-tye.ps1

PS: Commands may vary depending on your operating system.

Since the slowness varies from person to person, I leave a GiF from the Microservice Blazor-Wasm project below.

PS: Microservice Blazor-Server provides almost the same experience as Microservice Blazor-Wasm.

So, if you're talking about a much bigger slowness than in the GiF, maybe it's because the redis server isn't running.

Redis is a requirement for all the templates you mention, and without it there can be a lot of slowness. For more information 👉 https://stackoverflow.com/a/69371513/9922629

Answer

5.0.0-rc2 highlight of menu item with NavigationManager.NavigateTo()

Those highlights menu item: /page /page?id=12345 /page?12345

This doesn't work: /page/12345

We generally solved the active menu item problem. But for now, it will not work on the following patterns:

/users/{id} /catalog/dresses/{CATALOG_ID}

Answer

https://support.abp.io/QA/Questions/2209#answer-2ff13a81-fdaf-5f46-f0da-3a00b902c975

I could not reproduce this problem. Here are my steps:

1.abp new BzTestApp -csf -d mongodb --preview -u blazor 2. I run BzTestApp.DbMigrator 3. I run abp suite command then create the Author entity and Book entity. Also, the Author entity has a Navigation property to the Book entity. I configured the navigation property as Required marked and UI pick type set to typehead.

Here are the configuration files of my entities created by Suite:

Then I run the app.

PS: Both Suite and the app I created have version v5.0.0-rc.2

I'm trying to understand your use case, will back-office application pages require a specific role but not end-points, aren't they?

If so, a code like the one below might work for you:

options.Conventions.AuthorizeFolder("/YourFolderName", MyProjectNamePermissions.Backoffice.Default);

I would like to share a little more information on the subject 😊

ABP extends ASP.NET Core Authorization by adding permissions as auto policies and allowing the authorization system to be usable in the application services too. Therefore, you can refer to these documents on the subject 👇👇

  1. https://docs.microsoft.com/en-us/aspnet/core/security/authorization/razor-pages-authorization?view=aspnetcore-6.0#require-authorization-to-access-a-folder-of-pages
  2. https://docs.microsoft.com/en-us/aspnet/core/security/authorization/policies?view=aspnetcore-6.0
  3. https://docs.abp.io/en/abp/latest/Authorization
Showing 251 to 260 of 331 entries
Made with ❤️ on ABP v9.0.0-preview Updated on September 20, 2024, 08:30