Base solution for your next web application
Open Closed

Error on MultiTenancy GetAll #10762


User avatar
0
andmattia created

ANZ 7.1.0 & ANZ 10.5

I try to use multi tenancy routing by name and customize my base url to default tenant and host.mydomain.io to host but somenthing not work on main call from angular.

I follow this suggestion Access host side with hostdomaincom

I set up my local pc where i put some rule on hosts file to ruote traffic for

api.mydomain.com app.mydomain.com deafult.app.mydomain.com deafult.api.mydomain.com

I set on API side my config file in this way

"ServerRootAddress": "http://{TENANCY_NAME}.api.mydomain.com:5000/", 
"ClientRootAddress": "http://{TENANCY_NAME}.mydomain.com:4200/", 
"CorsOrigins": "http://*.mydomain.com:4200,http://localhost:4200,http://localhost:49152,http://localhost:5000,http://localhost:9876,http://localhost:9877",

and if I try to open http://api.mydomain.com:5000 or http://default.api.mydomain.com:5000 the web reply and I'm able to connect. I need to add this row to Program.cs on web.Host to allow IIS to replay on my real IP and not only to localhost

                .UseIISIntegration()
                .UseUrls("http://192.168.1.21:5000") //-->>>TO DEBUG ON Local
                .UseStartup<Startup>();

<br> From angular side I get this error

On 10.5 angular call first time and get an error so it retry on 7.1 no call 1 time and broken it. Is it normal that getall not replay first time?


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @andmattia

    This is not normal. Are there any error logs in the server side log file ?

    Thanks