Open Closed

Custom ConnectionStringResolver Issue #9350


User avatar
0
Spospisil created

Hi,

I have implemented a custom ConnectionStringResolver class but the ICurrentTenant implementation does not resolve to the current logged in tenant. However I can't even get ABP's solutions to run even if I exclude this resolver class. At this point I have grown very tired of getting any sample projects to work to show support when I generate them using ABP tools, so I'll just give you the generated solution and you can figure out how to get it to run first and then we can have a discussion about the CurrentTenant issue I am having.

Can't waste yet another day trying to get a stock generated ABP solution to run

Steps to Reproduce:

  1. Get stock ABP generated solution to compile/run (Good luck as I've spend 2 days attempting to get it generated and to even work)
  2. Login in as host admin and create a Tenant of 'KENCO' with a non-shared DB (tenant has their own db)
  3. Login in as the KENCO tenant admin
  4. Monitor the debug messages I've added to the CFDMultiTenantConnectionStringResolver.cs class
  5. Observe the CurrentTenant variable still being set to null
  6. I've not been able to verify this test project will reproduce the issue I am experiencing as I've stated above I can't even get the ABP tool generated solution to compile/run

https://github.com/spospisil/ABPSampleTenant.git


No answer yet!
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on September 01, 2025, 08:37