Base solution for your next web application
Open Closed

Domain Layer #980


User avatar
0
jasuha created

Hi all;

i have 5 abp standart layer in my project

-Company.Application -Company.Core -Company.EntityFramework -Company.Web -Company.WebApi

After added new class library
-Company.Domain

I am trying to your Task manager example on my project. i created TaskManager class like that

     **public class TaskManager : DomainService, ITaskManager**

after i added the below code to application layer

public class TaskAppService : ApplicationService, ITaskAppService { private readonly ITaskManager _taskManager; ... ... ...

when the run project i am getting like that error

**An exception of type 'Castle.MicroKernel.ComponentActivator.ComponentActivatorException' occurred in Castle.Windsor.dll but was not handled in user code

Additional information: ComponentActivator: could not proxy Abp.WebApi.Controllers.Dynamic.DynamicApiController`1**

what i am doing wrong. thank you for our help


2 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    Hi,

    First of all, why did you created a .Domain class library? .Core project is for domain layer already. If you create a new project (class library) in your solution, you should define a module class in this project (like defined as the first sample in <a class="postlink" href="http://www.aspnetboilerplate.com/Pages/Documents/Module-System">http://www.aspnetboilerplate.com/Pages/ ... ule-System</a>). Then you need to add dependency to this new module from your top module (web module in app_start folder).

  • User Avatar
    0
    jasuha created

    Thank you :)