Base solution for your next web application

Activities of "InnodelTech"

With site published under local IIS on port 80, the port number is not required in domain format I think. when visiting acme.lendinghub.com we see the public project page. not the login page. login page project is MVC project. We have planned it so that,

acme.lendinghub.com should go to the public page (marketing website) and acme.lendinghub.com/admin should go to tenant ("acme") login page. where tenant admin and other users will login.

We definitely need a remote session to fix this. I am sending email as suggested.

Yes, we published it on the local IIS. To make it same as production environment.

No, we are pointing to default port 80 in IIS. there is no port number. I confirm that is not the case,

Hello,

I really need your immediate help with this.

We have tried our best to follow the guideline as per the link below with no luck in properly determining the tenant. https://aspnetboilerplate.com/Pages/Documents/Multi-Tenancy#determining-current-tenant

In our case, we have created a domain

acme.lendinghub.com which points to 127.0.0.1 in etc\hosts file and pings correctly. We have created a website acme.lendinghub.com under IIS and are attaching the debugger to w3wp.exe process.

We have pointed the public project to acme.lendinghub.com so there is no logged-in user. The name field in abptenants table has "acme "as a value.

Lending_HubWebFrontEndModule.cs has this line

Configuration.Modules.AbpWebCommon().MultiTenancy.DomainFormat = "{0}.lendinghub.com";

//Enable this line to create a multi-tenant application. Configuration.MultiTenancy.IsEnabled = Lending_HubConsts.MultiTenancyEnabled;

        Configuration.MultiTenancy.IgnoreFeatureCheckForHostUsers = true; // Added by Dipendra/Chirag as per document. 

        Configuration.MultiTenancy.TenantIdResolveKey = "Abp-TenantId"; // Added by Dipendra/Chirag as per document.

We don't get the proper TenantId set or Tenant Name resolved.

Hello,

We have checked the documentation. While doing development - we need the ability to determine tenants and it should auto-switch the database connection string based on the incoming URL.

lendinghub.com is main domian. Tenant is T1 - t1.lendinghub.com

and we also entered these entries into the host file to resolve with the local machine IP.

we need help here with the proper approach here to develop and test multi-tenancy. We are unable to do it with localhost. we don't want to switch tenants manually and check.

Please guide.

Is it possible for us to schedule 10 mins Anydesk session with you? where we can give access to you and you can show us? I don't mind giving the code to you but I am afraid if it works in your environment - I will not know why it doesn't work for us. I hope you understand.

Ok, So we did that once for Countries entity and it worked. The country page gets added menu and CRUD works. Now when we want to do the same thing for the States entity, it duplicates DbContext rather than overwriting and these errors come. We tried removing everything and re-trying but no luck.

We really don't know what is wrong.

We don't know why DbContext gets duplicated.

Yes, we are unable to attach document files.

This is Country JSON. { "IsRegenerate": false, "MenuPosition": "main", "RelativeNamespace": "LhCountry", "EntityName": "Country", "EntityNamePlural": "Countries", "TableName": "Countries", "PrimaryKeyType": "int", "BaseClass": "Entity", "EntityHistory": false, "AutoMigration": true, "UpdateDatabase": true, "CreateUserInterface": true, "CreateViewOnly": true, "CreateExcelExport": true, "IsNonModalCRUDPage": false, "IsMasterDetailPage": false, "PagePermission": { "Host": true, "Tenant": true }, "Properties": [ { "Name": "Name", "Type": "string", "MaxLength": 100, "MinLength": 1, "Range": { "IsRangeSet": false, "MinimumValue": 0.0, "MaximumValue": 0.0 }, "Required": true, "Nullable": false, "Regex": "", "UserInterface": { "AdvancedFilter": true, "List": true, "CreateOrUpdate": true }, "ViewType": null, "AdditionalData": {} } ], "NavigationProperties": [], "NavigationPropertyOneToManyTables": [], "EnumDefinitions": [], "DbContext": null }

This is State JSON.

{ "IsRegenerate": false, "MenuPosition": "main", "RelativeNamespace": "LhState", "EntityName": "State", "EntityNamePlural": "States", "TableName": "States", "PrimaryKeyType": "int", "BaseClass": "Entity", "EntityHistory": false, "AutoMigration": true, "UpdateDatabase": true, "CreateUserInterface": true, "CreateViewOnly": true, "CreateExcelExport": true, "IsNonModalCRUDPage": false, "IsMasterDetailPage": false, "PagePermission": { "Host": true, "Tenant": true }, "Properties": [ { "Name": "Name", "Type": "string", "MaxLength": 100, "MinLength": 1, "Range": { "IsRangeSet": false, "MinimumValue": 0.0, "MaximumValue": 0.0 }, "Required": true, "Nullable": false, "Regex": "", "UserInterface": { "AdvancedFilter": true, "List": true, "CreateOrUpdate": true }, "ViewType": null, "AdditionalData": {} } ], "NavigationProperties": [ { "Namespace": "Lending_Hub.LhCountry", "ForeignEntityName": "Country", "IdType": "int", "IsNullable": false, "PropertyName": "CountryId", "DuplicationNumber": 0, "RelationType": "single", "ViewType": "Dropdown", "DisplayPropertyNameInfos": { "MergeFormat": "{0}", "DisplayPropertyNames": [ "Name" ] } } ], "NavigationPropertyOneToManyTables": [], "EnumDefinitions": [], "DbContext": null }

We really need help to fix this as soon as we can.

Showing 1 to 8 of 8 entries