Base solution for your next web application

Activities of "Mahinthan"

Question

Hi,

I have deployed the application to Azure App service with Multi-tenant configuration.

I have added * in CORS at Azure Appservice

Lets say my client domain in question is : xyz.com api domain in question is : pqr.com

Problem : When I tried to load the host admin portal (http://app.xyz.com), the page console says "'http://pqr.com/AbpUserConfiguration/GetAll?d=1594195737260' from origin 'http://app.xyz.com has been blocked by CORS policy'"

However, when I tried to load the tenant portal (http://default.app.xyz.com), it works without any problem.

My config entries are as follows

"App": { "ServerRootAddress": "http://{TENANCY_NAME}.pqr.com/", "ClientRootAddress": "http://{TENANCY_NAME}.app.xyz.com/", "CorsOrigins": "https://app.xyz.com/,http://app.xyz.com/,https://.app.xyz.com/,http://.app.xyz.com/", "SwaggerEndPoint": "/swagger/v1/swagger.json", "AllowAnonymousSignalRConnection": "true" },

"remoteServiceBaseUrl": "http://{TENANCY_NAME}.pqr.com", "appBaseUrl": "http://{TENANCY_NAME}.app.xyz.com",

Hi, I'm using latest .NET Core 2.2/Angular separate project

I'm getting the following error, when I publish the angular project

I have verified those json files are in the assets folder.

Could you please help me on the above issue

Thanks

I'm using .NET Core/Angular 8 solution

When I try to setup the build pipeline for the Angular project, the Publish task is failing with the following error

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed

I have tried the answer given here - https://support.aspnetzero.com/QA/Questions/6990 But no luck. It is giving another error as below

An invalid configuration file was found ./angular.json. Please delete the file before running the command

If I delete the file, Im not able to publish the project.

Can anyone help on this case please?

Thanks Mahi

Question

It's been so far good, until I get the following error, while I start the project.

Null is not a valid constant value for this type.

Could anyone help on this please?

  • I have followed the instructions from the following doc.

https://aspnetboilerplate.com/Pages/Documents/Multi-Lingual-Entities

  • When I run an endpoint to create a product, I get the following error

Unmapped members were found. Review the types and members below. Add a custom mapping expression, ignore, add a custom resolver, or modify the source/destination type For no matching constructor, add a no-arg ctor, add optional arguments, or map all of the constructor parameters

AutoMapper created this type map for you, but your types cannot be mapped using the current configuration. ProductDto -> Product (Destination member list) SwissOrdering.Product.ProductDto -> SwissOrdering.Product.Product (Destination member list)

Unmapped properties: Id

  • Im using the following version of Automapper

Abp.AutoMapper 4.6.0

  • May I know, how can I resolve this issue?

I have a requirement, as per the diagram in the attachment.

Im going to have a multi-tenant application. My application does have following roles.

Super Admin - Admin of all tenants. Account Manager - Admin of selected tenants Tenant Admin - Admin of a tenant Customers - These users can consume services from different tenant

My requirement is, if a customer has to consume a service from a tenant (tenant 1), he/she must register with the system. If the same customer has to consume a service from another tenant (tenant 2), he/she does not have to register again. He/She should be able to use the same credentials used for the former tenant to the latter tenant too. May I know, how can this be achieved?

Showing 1 to 6 of 6 entries