- 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.
-
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
-
0
Hello,
You may refer this https://docs.abp.io/en/abp/latest/Customizing-Application-Modules-Guide#module-entity-extension-system
thanks
-
0
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?
-
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.
-
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.
-
0
I apologise for your inconvenience; I will check and get back to you.
-
0
I apologise for your inconvenience; I will check and get back to you.
Ok Thanks
-
0
Any Update?
-
0
I am assigning this to @maliming.
-
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 | | |
-
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.IRepository
2[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
-
0
hi
You should create a
IMapComponentSettingRepository
interface and implement it onEF Core
module.then inject the
IMapComponentSettingRepository
fromMapComponentAppService
See
https://github.com/abpframework/abp/blob/dev/modules/identity/src/Volo.Abp.Identity.EntityFrameworkCore/Volo/Abp/Identity/EntityFrameworkCore/AbpIdentityEntityFrameworkCoreModule.cs#L14-L23
-
0
hi
You should create a
IMapComponentSettingRepository
interface and implement it onEF Core
module.then inject the
IMapComponentSettingRepository
fromMapComponentAppService
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<MapComponentSetting, Guid> repository) :base(repository) { } ........//Other Methods
}
-
0
hi
Can you share a simple tiered project to show the problem?
liming.ma@volosoft.com
-
0
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
-
0
hi
Please share your test project with liming.ma@volosoft.com include the steps.
Thanks
-
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
-
0
hi
You can try to reproduce this problem in a new template project and module.
-
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
-
0
hi dipak.z
I know your problem, I need to reproduce the problem in my local environment and troubleshoot the cause.
-
0
ok i will mail you nuget pacakge url. and create project from abp suite with tired and webpublic. thank you.
-
0
Thanks
-
0
Thanks
Please you can take Anydesk or Zoom meeting for this . According to Company Policy I Can't Share Nuget packages.
-
0
hi
Can you reproduce it in a new template module and app projects?
Remote checking/debugging is slow.
Thanks.