Problem in using FolderPlugInSource
See original GitHub issueI’ve a multi module system and I’m migrating it to ABP v0.10.1.2. I’m facing the below issue.
Component Abp.AutoMapper.AbpAutoMapperModule 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.
Stack Trace:
[ComponentRegistrationException: Component Abp.AutoMapper.AbpAutoMapperModule 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.]
Castle.MicroKernel.SubSystems.Naming.DefaultNamingSubSystem.Register(IHandler handler) +579
Castle.MicroKernel.DefaultKernel.AddCustomComponent(ComponentModel model) +55
Castle.MicroKernel.DefaultKernel.Register(IRegistration[] registrations) +69
Castle.Windsor.WindsorContainer.Register(IRegistration[] registrations) +46
Abp.Modules.AbpModuleManager.RegisterModules(ICollection`1 moduleTypes) in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Modules\AbpModuleManager.cs:127
Abp.Modules.AbpModuleManager.LoadAllModules() in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Modules\AbpModuleManager.cs:72
Abp.AbpBootstrapper.Initialize() in D:\Halil\GitHub\aspnetboilerplate\src\Abp\AbpBootstrapper.cs:138
HammadSystem.Web.MvcApplication.Application_Start(Object sender, EventArgs e) in D:\src\HammadSystem\src\HammadSystem.Web\Global.asax.cs:21
[HttpException (0x80004005): Component Abp.AutoMapper.AbpAutoMapperModule 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.]
System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +544
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +186
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +172
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +402
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +343
[HttpException (0x80004005): Component Abp.AutoMapper.AbpAutoMapperModule 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.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +579
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +112
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +716
The system core modules dlls plus Abp dlls are located in the bin Folder The System modules are located in modules folder and because it depend on abp and the some of the core system modules the dlls are also copied in this folder. I’ve added this section in the web.config
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="bin;modules"/>
<dependentAssembly>.....
</assemblyBinding>
Before adding this section, This system wan’t able to load the dlls that my plug in depends on. Am I doing something wrong? Thanks,
Issue Analytics
- State:
- Created 7 years ago
- Comments:15 (13 by maintainers)
Top Results From Across the Web
Plugin does not preserve folder structure source vs ...
basically under 'sources/images' I have additional folders named svg and favicon. v3.0.0+ using cpy doesn't create those subfolders in the ...
Read more >Source code not shown when using folders plugin
The source can be viewed locally, but then the project have to be cloned and built locally. With the folder plugin, there are...
Read more >Unable to use Intellij with a generated sources folder
I'm using Maven (SpringBoot application) solution is: Right click project folder; Select Maven; Select Generate Sources And Update Folders.
Read more >QGIS Plugin folder names mixup
After uploading the plugin to the QGIS repository, in the end the folder names were not a problem and the issue solved itself....
Read more >SketchUp 2019 + plugins from external sources problem
It sounds like the actual location of the Plugins folder (target) becomes only resolved when an event triggers it (like installation of an ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
One another option may be AppDomain.AssemblyResolve Event (https://msdn.microsoft.com/en-us/library/system.appdomain.assemblyresolve(v=vs.110).aspx). ABP can register to this event and check plugin folders for unknown assemblies.
Thanks, I use this fo .NET CORE: