Open Closed

Custom Modules Installation Problem With Tired Solution #6722


User avatar
0
dipak.z created
  • ABP Framework version: v8.0.2
  • UI Type: MVC
  • Database System: EF Core ( PostgreSQL.)
  • Tiered (for MVC) or Auth Server Separated ): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

Module Structure: ModuleName.Application ModuleName.Application.Contracts ModuleName.Domain
ModuleName.Domain.Shared ModuleName.EntityFrameworkCore ModuleName.HttpApi ModuleName.HttpApi.Client ModuleName.Web

Project Solution Structure:

LIS.Application LIS.Application.Contracts LIS.AuthServer LIS.DbMigrator LIS.Domain LIS.Domain.Shared LIS.EntityFrameworkCore LIS.HttpApi LIS.HttpApi.Client LIS.HttpApi.Host LIS.Web LIS.Web.Public

i want to use module in this project but how to use in this Project Solution Structure? i used this module in non Tiered Project Structure its working fine


30 Answer(s)
  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hello ,

    Please check if it helps you https://docs.abp.io/en/commercial/latest/abp-suite/create-module-solution#adding-your-new-abp-module-to-your-main-solution

    Thank you.

  • User Avatar
    0
    dipak.z created

    Hello ,

    Please check if it helps you https://docs.abp.io/en/commercial/latest/abp-suite/create-module-solution#adding-your-new-abp-module-to-your-main-solution

    Thank you.

    I dont want to add as project reference i created nuget packages of module and i am using that in project

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hello,

    You may refer this https://docs.abp.io/en/abp/latest/Customizing-Application-Modules-Guide#module-entity-extension-system

    thanks

  • User Avatar
    0
    dipak.z created

    I have created nuget packages for my modules and i want to install that nuget package in project structure. So how can i achieve that?

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    You can install that customized module in your application with the help of CLI.

    npm install < YourModuleName >

    Note - You can install it desired project by opening its command prompt form file explorer.

  • User Avatar
    0
    dipak.z created

    You can install that customized module in your application with the help of CLI.

    npm install < YourModuleName >

    Note - You can install it desired project by opening its command prompt form file explorer.

    i have nuget packages not npm packages ok. i want to install that packages in tired solution also i give both project structure(Module and actual project) please suggest.

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    I apologise for your inconvenience; I will check and get back to you.

  • User Avatar
    0
    dipak.z created

    I apologise for your inconvenience; I will check and get back to you.

    Ok Thanks

  • User Avatar
    0
    dipak.z created

    Any Update?

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    I am assigning this to @maliming.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi @dipak

    | Your project | operator | Module | | --- | --- | --- | | LIS.Application | Add reference & Depends on| ModuleName.Application | LIS.Application.Contracts |Add reference & Depends on|ModuleName.Application.Contracts| LIS.AuthServer| | | LIS.DbMigrator| | | LIS.Domain | Add reference & Depends on| ModuleName.Domain| LIS.Domain.Shared | Add reference & Depends on| ModuleName.Domain.Shared| LIS.EntityFrameworkCore | Add reference & Depends on| ModuleName.EntityFrameworkCore| LIS.HttpApi | Add reference & Depends on|ModuleName.HttpApi| LIS.HttpApi.Client | Add reference & Depends on| ModuleName.HttpApi.Client| LIS.HttpApi.Host | | | LIS.Web | Add reference & Depends on| ModuleName.Web | LIS.Web.Public | | |

  • User Avatar
    0
    dipak.z created

    i already do that and its throw error when i run ViewComponent from Module @await Component.InvokeAsync(typeof(SGLMapComponent.Web.Components.Map.MapViewComponent), new {pageName="Portal"})

    An unhandled exception occurred while processing the request. DependencyResolutionException: None of the constructors found on type 'SGLMapComponent.MapComponent.MapComponentAppService' can be invoked with the available services and parameters: Cannot resolve parameter 'Volo.Abp.Domain.Repositories.IRepository2[SGLMapComponent.MapComponentSettings.MapComponentSetting,System.Guid] repository' of constructor 'Void .ctor(Volo.Abp.Domain.Repositories.IRepository2[SGLMapComponent.MapComponentSettings.MapComponentSetting,System.Guid])'.

    See https://autofac.rtfd.io/help/no-constructors-bindable for more info.

    Autofac.Core.Activators.Reflection.ReflectionActivator+<>c__DisplayClass14_0.<UseSingleConstructorActivation>b__0(ResolveRequestContext context, Action<ResolveRequestContext> next) DependencyResolutionException: An exception was thrown while activating SGLMapComponent.Web.Components.Map.MapViewComponent -> SGLMapComponent.MapComponent.MapComponentAppService.

    ModuleName -> SGLMapComponent

    this module run perfectly in NonTired Solution

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You should create a IMapComponentSettingRepository interface and implement it on EF Core module.

    then inject the IMapComponentSettingRepository from MapComponentAppService

    See

    https://github.com/abpframework/abp/blob/dev/modules/identity/src/Volo.Abp.Identity.EntityFrameworkCore/Volo/Abp/Identity/EntityFrameworkCore/AbpIdentityEntityFrameworkCoreModule.cs#L14-L23

  • User Avatar
    0
    dipak.z created

    hi

    You should create a IMapComponentSettingRepository interface and implement it on EF Core module.

    then inject the IMapComponentSettingRepository from MapComponentAppService

    See

    https://github.com/abpframework/abp/blob/dev/modules/identity/src/Volo.Abp.Identity.EntityFrameworkCore/Volo/Abp/Identity/EntityFrameworkCore/AbpIdentityEntityFrameworkCoreModule.cs#L14-L23

    but module is working fine in non tired solution and all code is in module.this is not worked in tired solution

    also in module there is not any repository named IMapComponentSettingRepository

    public class MapComponentAppService : CrudAppService< MapComponentSetting, MapComponentSettingDto, Guid, PagedAndSortedResultRequestDto, CreateUpdateMapComponentSettingDto>, IMapComponentAppService {

        public MapComponentAppService(IRepository&lt;MapComponentSetting, Guid&gt; repository) :base(repository) { 
        }
        ........//Other Methods
    

    }

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you share a simple tiered project to show the problem?

    liming.ma@volosoft.com

  • User Avatar
    0
    dipak.z created

    hi

    Can you share a simple tiered project to show the problem?

    liming.ma@volosoft.com

    i created sample project from abp suite. this is structure

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Please share your test project with liming.ma@volosoft.com include the steps.

    Thanks

  • User Avatar
    0
    dipak.z created

    hi

    Please share your test project with liming.ma@volosoft.com include the steps.

    Thanks

    But Nuget packages of my module is on internal url.

    Steps:- Create New Project from abp suite ->Install Nuget Pacakge of Custom module in each project & Add Depends On. ->Migrate Db -> Run Project and when open CRUD Page of Module or Invoke ViewComponenet of module then throw this error

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can try to reproduce this problem in a new template project and module.

  • User Avatar
    0
    dipak.z created

    hi

    You can try to reproduce this problem in a new template project and module.

    -> I have module in non tired solution its working in that solution -> after publish nuget packages of module install in other non tired solution and its work in this solution -> create another tired soltuion in this install that module its not working in this

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi dipak.z

    I know your problem, I need to reproduce the problem in my local environment and troubleshoot the cause.

  • User Avatar
    0
    dipak.z created

    ok i will mail you nuget pacakge url. and create project from abp suite with tired and webpublic. thank you.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Thanks

  • User Avatar
    0
    dipak.z created

    Thanks

    Please you can take Anydesk or Zoom meeting for this . According to Company Policy I Can't Share Nuget packages.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you reproduce it in a new template module and app projects?

    Remote checking/debugging is slow.

    Thanks.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11