- 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)
-
0
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.
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
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
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
Hello,
You may refer this https://docs.abp.io/en/abp/latest/Customizing-Application-Modules-Guide#module-entity-extension-system
thanks
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
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.
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
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.
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
I apologise for your inconvenience; I will check and get back to you.
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
I am assigning this to @maliming.
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
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 | | |
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
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.IRepository
2[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
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
hi
You should create a
IMapComponentSettingRepositoryinterface and implement it onEF Coremodule.then inject the
IMapComponentSettingRepositoryfromMapComponentAppServiceSee
https://github.com/abpframework/abp/blob/dev/modules/identity/src/Volo.Abp.Identity.EntityFrameworkCore/Volo/Abp/Identity/EntityFrameworkCore/AbpIdentityEntityFrameworkCoreModule.cs#L14-L23
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
hi
You should create a
IMapComponentSettingRepositoryinterface and implement it onEF Coremodule.then inject the
IMapComponentSettingRepositoryfromMapComponentAppServiceSee
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<MapComponentSetting, Guid> repository) :base(repository) { } ........//Other Methods}
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
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
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
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
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)