WHile upgrading the ABP 7.3.2 to ABP 9.2.0, we are facing issue with Mongo, we have a code something like
But with the latest Mongo Driver (3.3.0) we are getting
---> System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Could not load file or assembly 'MongoDB.Bson, Version=3.4.0.0, Culture=neutral, PublicKeyToken=94992a530f44e321'. The system cannot find the file specified. Could not load type 'MongoDB.Driver.Linq.IMongoQueryable`1' from assembly 'MongoDB.Driver, Version=3.3.0.0, Culture=neutral, PublicKeyToken=94992a530f44e321'.
we cant change the logic in Mongo Repository as we have that many instances.
Can you please advise. as we dont want to change across multi servies and pages which have which is difficult to do
Thanks @berkansasmaz Please send the invite to srinivas.kazipeta@exceego.com and viswajwalith@exceego.com
[berkansasmaz] said: Hello 👋
If possible, please send your solution to support@abp.io, including the ticket number (#9445) in the subject or body of the email. So that I can help you faster.
Best regards, Berkan Şaşmaz Developer Advocate https://www.berkansasmaz.com
It s not possible to send the code we may have the screenshare session to take this further. Please advise
Error Message: 2025-06-09 20:07:39.997 +05:30 [INF] Request finished HTTP/2 GET https://localhost:44321/api/identity/tenant-event-handlers?tenantId=7ac84000-6791-ac65-993f-3a106aefe34d&tenantName=TestTenant1 - - - 404 - - 10.4363ms
If any additional info will share accordingly
ABP Framework version: v7.3.2 UI Type:MVC Database System: EF Core (SQL Server, Oracle, MySQL, PostgreSQL, etc..) / MongoDB Tiered (for MVC) or Auth Server Separated (for Angular): yes
Hi ABP Support Team,
Some of our clients prefer not to use any distributed messaging infrastructure (e.g., RabbitMQ or Kafka) in their environments. As a result, we would like to understand if it's feasible to completely exclude the DistributedEventBus dependency from our ABP-based microservice solution.
In this context:
Can we use LocalEventBus as a replacement for DistributedEventBus, particularly for intra-service communication in modules like Identity and SaaS, assuming they are hosted within the same process or closely coupled?
Is it possible to dynamically switch between LocalEventBus and DistributedEventBus based on a configuration setting (e.g., from appsettings.json) so the same codebase can support both environments (with or without distributed messaging)?
If this is supported, we would appreciate guidance on recommended practices or potential limitations.
Thank you for your support.
ABP Framework version: v7.3.2 UI Type:MVC Database System: EF Core (SQL Server, Oracle, MySQL, PostgreSQL, etc..) / MongoDB Tiered (for MVC) or Auth Server Separated (for Angular): yes
We intend to implement a "Login As" functionality in an external application (not a traditional web UI). We require an API that can generate an impersonation token, allowing us to access user-specific data (such as organization details, property settings, and other personalized configurations).
All authentication and impersonation processes must be handled entirely via APIs, with no dependency on browser-based or UI interactions.
hi
how about picking the connection string key at run time like "AbpIdentityServer_<<TENANTNAME>>"
If you don't want to use
Database Connection StringsYou can override and replace the
MultiTenantConnectionStringResolverservice.https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.MultiTenancy/Volo/Abp/MultiTenancy/MultiTenantConnectionStringResolver.cs#L27-L82
https://github.com/abpframework/abp/blob/dev/framework/test/Volo.Abp.MultiTenancy.Tests/Volo/Abp/Data/MultiTenancy/MultiTenantConnectionStringResolver_Tests.cs
Thanks, we will try
hi
You must set the tenant connection string under the
Database Connection Stringsmodal.The
ProductServicecan't use SQL server and MongoDB at the same time. eg: Host and tenants can use different SQL server connection strings. but can't use MongoDB.The values are stored in the
SaasTenantConnectionStringstable of the host database.
Ya ya, we dont want to use both at the time, we will be using eaither of that but just trying to use different servers for the same.
how about picking the connection string key at run time like "AbpIdentityServer_<<TENANTNAME>>"
hi
You can configure the
AbpDbConnectionOptionsto add yourconnection stringname. Then you can change it in theDatabase Connection Stringsmodal.https://abp.io/docs/latest/framework/fundamentals/connection-strings#configuring-the-database-structures
Thanks for the update, do you think overrsing any of the file can work to have tenant specific DB connection string or using the connection string name something like "AbpIdentityServer_<<TENANTNAME>>" ?