Base solution for your next web application

Activities of "InnodelTech"

Hello, We downloaded and installed power tools as per documentation and we are having problems. It is not working.

I am encountering the same issue and after create Second MasterPage with Foreign key the code is generated however I get an error while Build Project . This is the error I have.... Metadata file 'E:\Lending_Hub\Lending_Hub\src\Lending_Hub.Application\obj\Debug\net7.0\ref\Lending_Hub.Application.dll' could not be found Metadata file 'E:\Lending_Hub\Lending_Hub\src\Lending_Hub.EntityFrameworkCore\obj\Debug\net7.0\ref\Lending_Hub.EntityFrameworkCore.dll' could not be found Metadata file 'E:\Lending_Hub\Lending_Hub\test\Lending_Hub.Test.Base\obj\Debug\net7.0\ref\Lending_Hub.GraphQL.Test.Base.dll' could not be found Metadata file 'E:\Lending_Hub\Lending_Hub\src\Lending_Hub.Application\obj\Debug\net7.0\ref\Lending_Hub.Application.dll' could not be found Metadata file 'E:\Lending_Hub\Lending_Hub\src\Lending_Hub.EntityFrameworkCore\obj\Debug\net7.0\ref\Lending_Hub.EntityFrameworkCore.dll' could not be found Metadata file 'E:\Lending_Hub\Lending_Hub\test\Lending_Hub.Test.Base\obj\Debug\net7.0\ref\Lending_Hub.GraphQL.Test.Base.dll' could not be found Metadata file 'E:\Lending_Hub\Lending_Hub\src\Lending_Hub.Application\obj\Debug\net7.0\ref\Lending_Hub.Application.dll' could not be found Metadata file 'E:\Lending_Hub\Lending_Hub\src\Lending_Hub.EntityFrameworkCore\obj\Debug\net7.0\ref\Lending_Hub.EntityFrameworkCore.dll' could not be found Metadata file 'E:\Lending_Hub\Lending_Hub\src\Lending_Hub.Web.Core\obj\Debug\net7.0\ref\Lending_Hub.Web.Core.dll' could not be found Metadata file 'E:\Lending_Hub\Lending_Hub\src\Lending_Hub.Application\obj\Debug\net7.0\ref\Lending_Hub.Application.dll' could not be found Metadata file 'E:\Lending_Hub\Lending_Hub\src\Lending_Hub.EntityFrameworkCore\obj\Debug\net7.0\ref\Lending_Hub.EntityFrameworkCore.dll' could not be found Metadata file 'E:\Lending_Hub\Lending_Hub\src\Lending_Hub.Web.Core\obj\Debug\net7.0\ref\Lending_Hub.Web.Core.dll' could not be found Metadata file 'E:\Lending_Hub\Lending_Hub\src\Lending_Hub.Application\obj\Debug\net7.0\ref\Lending_Hub.Application.dll' could not be found Metadata file 'E:\Lending_Hub\Lending_Hub\src\Lending_Hub.EntityFrameworkCore\obj\Debug\net7.0\ref\Lending_Hub.EntityFrameworkCore.dll' could not be found

Additional images to explain the tables we are trying to creat. It is very simple easy thing we are having issues.

<br>

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.

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.

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.

Question

Hello,

We are building a multi-tenant web application and will be having a separate database per tenant. when we add a new tenant from the owner login, it should send an email to a tenant with the link and login credentials. it automatically created a new database per tenant.

also need to know, how the tenant is identified or detected from the incoming URL using HOST HEADER and how the database connection changes dynamically? can you please explain this and refer us to the corresponding code files to check that?

Chirag

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.

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.

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

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

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.

Showing 1 to 10 of 13 entries