"Talal" की गतिविधियाँ

I started with MVC-Tiered Solution

Worked then followed: https://blog.antosubash.com/posts/abp-extend-tenant-with-custom-host

I am getting:

The requested service 'TestProj.TenantManagement.ICustomTenantRepository' has not been registered. To avoid this exception, either register a component to provide the service, check for service registration using IsRegistered(), or use the ResolveOptional() method to resolve an optional dependency..

I can not find a solution anywhere

Please help.

i shared the solution with you (GDrive)

Please help me understand these things:

  1. Since I have to make the API Controller inherit from the related service Interface; I feel my self forced to create an API endpoint for each App service call even if I do not intend to use them (I just leave it as unimplemented sometimes)

  2. Then in many cases and even if it's against what I want to do; whenever I inject the Interface of that service, instead of the SERVICE implementation in the Application project used, the Controller implementation is used. For example, the API is called, not the service directly when I am trying to have an action in the Web project for example when a button is clicked in behind the code (C#). It's weird that the C# app service called the CONTROLLER implementation of the Service interface instead of calling the Service directly using the Application project implementation. The image below if from the submit action of a button in WEB. It should not use the API but it is. It should use the service implementation from Application project directly instead of 2 bounces

  3. In a completely different issue: I find it odd the multi-tiered solution duplicates the /api/ functionality in the WEB url instead of the proper was of calling API url using tokens for example. I noticed that it does this to use the logged-in user auth cookie in the web app. In a tiered application, the API calls are done with JWT token and handles renewal of the tokens etc. I still can not figure out why the Web project is tightly married to the API. Something is off.

Thank you

I do not believe using an App service is "Accessing the database directly" I need a modern application where I do not fuse the Web and API together. these 2 must be separated.

I should be able to make the WEB project dumb.

the JWT token is not really used for API calls instead the Web is tightly coupled with the web.

The separation between:

  • API
  • Web
  • and Auth server

seems wrong.

Why do I have to rout my service calls through API when I a using the code-behine? I should be able to use a call to the Application service directly.

Can you explain / example; how to call the service directly from Web code-behind without using the API?

I will look into using Angular.

Thank you

I came in to post something similar I have been having recently. I saw this post so I am posting it here first since it could be related. In production: I log in. (even as admin) the user logs in but no pages that require permission is showing, This also happens when the user session timeout.

If I logout then log in with same user. That does not help

If I log out and then login with a DIFFERENT user. then I see the pages.

Sometimes clearing browser cache for the app AND the auth server both helps.

This is weird and started recently.

I am on latest (7)

If this is not related then I apologize for the OP. but please try to logout and log in with a different user and see if that help?

@trendline I guess a different issue. I will create another ticket. Sorry to piggyback on your question.

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

This is happening in production in multiple applications.

I may be doing something wrong so please be patient and let me know what I can do to fix it.

  • The user is logged in. (image 1)
  • The session timeout after x mins (expected)
  • When the user comes back the page is still on image 1. Clicks anywhere. Notice that the menu is removed (permissions are gone because of the user no longer logged in. Expected)
  • However, notice that now the user is still showing up in the top right corner (admin). (Image 2)
  • I logged out
  • I log in again.
  • Still shows up as if the current user has no permission to do anything (the user is admin and has full permissions) (Image 2)
  • Sometimes if the user times out on a page and clicks a link after a few hours the auth server goes into an endless loop

This is a production issue. I appreciate some help/direction.

Thank you

उत्तर

@maliming Sadly it dd not work.

उत्तर

sorry to say but when things get stuck the application becomes useless :( this is production and now even I delete cookies I flush redis I restart the service/the application even restarted production server. no matter what I do the logged in admin now only sees home.

if (after login as admin) I try to manually type in a secure page, the auth server goes in an endless loop.

What should I do?

19 प्रविष्टियों में 1 से 10 दिखा रहा है
Made with ❤️ on ABP v8.2.0-preview Updated on मार्च 25, 2024, 15:11