antosubash / blog-comments

MIT License
0 stars 0 forks source link

posts/netcore-microservice-with-abp-saas-services-part-5 #18

Open utterances-bot opened 1 year ago

utterances-bot commented 1 year ago

SaaS Services - .NET Microservice with ABP - Part 5

In this post we will see how to do the create SaaS Service for our microservice application

https://blog.antosubash.com/posts/netcore-microservice-with-abp-saas-services-part-5

julian-forster commented 1 year ago

Hi, when i try to query in the saas module multitenancy by-id or by-name, the following error gets thrown. I couldn't figure out, why it happens. Can you maybe help me there?

[17:26:24 ERR] An exception was thrown while activating Pages.Abp.MultiTenancy.AbpTenantController. Autofac.Core.DependencyResolutionException: An exception was thrown while activating Pages.Abp.MultiTenancy.AbpTenantController. ---> Autofac.Core.DependencyResolutionException: None of the constructors found with 'Autofac.Core.Activators.Reflection.DefaultConstructorFinder' on type 'Pages.Abp.MultiTenancy.AbpTenantController' can be invoked with the available services and parameters: Cannot resolve parameter 'Volo.Abp.AspNetCore.Mvc.MultiTenancy.IAbpTenantAppService abpTenantAppService' of constructor 'Void .ctor(Volo.Abp.AspNetCore.Mvc.MultiTenancy.IAbpTenantAppService)'. at Autofac.Core.Activators.Reflection.ReflectionActivator.GetAllBindings(ConstructorBinder[] availableConstructors, IComponentContext context, IEnumerable1 parameters) at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable1 parameters) at Autofac.Core.Activators.Reflection.ReflectionActivator.b__11_0(ResolveRequestContext ctxt, Action1 next) at Autofac.Core.Resolving.Middleware.DisposalTrackingMiddleware.Execute(ResolveRequestContext context, Action1 next) at Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action`1 next) --- End of inner exception stack trace --- ........

antosubash commented 1 year ago

@JulianForster01 make sure you have Volo.Abp.AspNetCore.Mvc.MultiTenancy package installed as a dependency.

julian-forster commented 1 year ago

Hi, thanks for the quick response. Its working now. But you have to add the following route to the reverse proxy config in order to work:

     "saas2": {
        "ClusterId": "saas",
        "Match": {
          "Path": "/api/abp/multi-tenancy/{*any}"
        }
scurlick commented 1 year ago

I am having the same issue and I have an mvc web app not angular. I added Volo.Abp.AspNetCore.Mvc.MultiTenancy package but does not work I also added Volo.Abp.MultiTenancy package but still the same. Any help will be appreciated

MikaelStr commented 9 months ago

Hello, Great Video ! I cant get the permissions from the Saas service to show in when using the Swagger get application-configuration. The Migrations works and it starts but the tenantmanagement permissions doesnt show.

How is this mechanism working ?

davidayalagt commented 2 months ago

hey @MikaelStr were you able to solve your issue, I have the same, but can't figure out how to fix it