Base solution for your next web application
Open Closed

Interface not registered on DLL (not Module) #7398


User avatar
0
andmattia created

I've a problem on a shared DLL on ABP .Net 4.x not core.

I've create a shared DLL where I put some Interface/implementation like

MyControllerApplicationService : IApplicationService

So If I move this class from ApplicationModule MyControllerApplicationService is not registered and I don't see on js and Ioc to restore the normal functionality I need to move back to Application module.

Is there a way to solve this issue?

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

4 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    You can create a module on your shared DLL and depend on this one from your app module. And register classes like this https://github.com/aspnetzero/aspnet-zero-core/blob/dev/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Application/AbpZeroTemplateApplicationModule.cs#L27 in your shared module.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    andmattia created

    Hi

    but in this we my DLL is strict dependent from ABP version. I see that in Core version the shared dll is not a module, is it correct?

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    andmattia created

    @ismcagdas

    I look into the Core solution when I plan to use shared DLL and I see that on Core there is some DLL but is not a ABP module.

    What I'm wrong?

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    alper created
    Support Team

    show your project's module class code

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)