Castle.MicroKernel.ComponentNotFoundException: "No component for supporting the service Abp.WebApi.Configuration.IAbpWebApiConfiguration was found
See original GitHub issueI’m trying to change the configuration of the AbpWebApi module so it does not wrap dynamic API by default, but I get the following exception:
Castle.MicroKernel.ComponentNotFoundException: "No component for supporting the service Abp.WebApi.Configuration.IAbpWebApiConfiguration was found"
at Castle.MicroKernel.DefaultKernel.Castle.MicroKernel.IKernelInternal.Resolve(Type service, IDictionary arguments, IReleasePolicy policy)
at Castle.Windsor.WindsorContainer.Resolve[T]()
at Abp.Configuration.DictionaryBasedConfig.GetOrCreate[T](String name, Func1 creator) in D:\\Github\\aspnetboilerplate\\src\\Abp\\Configuration\\DictionaryBasedConfig.cs:line 113
at XXXXXApplicationModule.Initialize() in XXXXXXXX\aspnet-core\\src\\XXXXX.Application\\XXXXXApplicationModule.cs:line 33
at System.Collections.Generic.List1.ForEach(Action1 action)
at Abp.Modules.AbpModuleManager.StartModules() in D:\\Github\\aspnetboilerplate\\src\\Abp\\Modules\\AbpModuleManager.cs:line 48
at Abp.AbpBootstrapper.Initialize() in D:\\Github\\aspnetboilerplate\\src\\Abp\\AbpBootstrapper.cs:line 153" string
It happens when I try to access the AbpWebApi() module, like here for example:
//XXXXXApplicationModule.cs
/* 33 */ Configuration.Modules.AbpWebApi().DefaultDynamicApiWrapResultAttribute.WrapOnError = true;
/* 34 */ Configuration.Modules.AbpWebApi().DefaultDynamicApiWrapResultAttribute.WrapOnSuccess = false;
I’m using ABP 3.3.0 with a fresh Angular and ASP.NET Core template (not MVC).
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
No component for supporting the service Abp.Zero. ...
If I disable bg jobs by Configuration.BackgroundJobs.IsJobExecutionEnabled = false; I got another exception as below: Can't create component ' ...
Read more >HTML 5 Document Viewer - "No component for supporting ...
MicroKernel.ComponentNotFoundException: "No component for supporting the service Abp.WebApi.Configuration.IAbpWebApiConfiguration was found
Read more >Castle.MicroKernel.ComponentActivator. ...
ComponentNotFoundException : No component for supporting the service Abp.AspNetCore.Configuration.AbpAspNetCoreConfiguration was found.
Read more >No component for supporting the service CMS.Helpers. ...
I am having kentico 11 website. When am trying to host and run it locally am getting following error. Server Error in '/'...
Read more >ComponentNotFoundException when using ...
this throws the following exception. Castle.MicroKernel.ComponentNotFoundException : No component for supporting the service IFileWatcher was found
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
@Trojaner25 first, you shouldn’t reference Abp.Web.Api nuget package to your project if it is ASP.NET Core. You can configure result wrapping like this in the PreInitialize method of your web module.
Configuration.Modules.AbpAspNetCore().DefaultWrapResultAttribute
Thanks