Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

There is already a component with that name. #886


User avatar
0
eu11111 created

I've been trying to create some modules in my solution. At the moment I have 2 core modules (inside a single project), 2 application modules (inside a single project) and one data module. I also have 2 web applications (alongside 2 apis) for different purposes. Whenever I try to run any of these web applications, I get the following error:

Component AbpCompanyName.AbpProjectName could not be registered. There is already a component with that name. Did you want to modify the existing component instead? If not, make sure you specify a unique name.

Should I separate my modules in different projects to make it work? Or should I unify my modules into one?

Thanks!


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

    It seems your code 'somehow' registering same component twice. I did not undertand which class is that, since exception message does not contain it. BTW, you can have more than one modules in same application, no problem about that.