;Castle.MicroKernel.ComponentNotFoundException: No component for supporting the service ****** was found
In Castle.MicroKernel.DefaultKernel.Castle.MicroKernel.IKernelInternal.Resolve(Type service, Arguments arguments, IReleasePolicy policy, Boolean ignoreParentContext)
In Castle.MicroKernel.DefaultKernel.Resolve(Type service, Arguments arguments)
In Castle.Windsor.WindsorContainer.Resolve[T]()
In Abp.Dependency.IocManager.Resolve[T]() location D:\Github\aspnetboilerplate\src\Abp\Dependency\IocManager.cs:line 179
In Abp.Dependency.IocResolverExtensions.ResolveAsDisposable[T](IIocResolver iocResolver) location D:\Github\aspnetboilerplate\src\Abp\Dependency\IocResolverExtensions.cs:line 18
In Castle.MicroKernel.DefaultKernel.Castle.MicroKernel.IKernelInternal.Resolve(Type service, Arguments arguments, IReleasePolicy policy, Boolean ignoreParentContext)
In Castle.MicroKernel.DefaultKernel.Resolve(Type service, Arguments arguments)
In Castle.Windsor.WindsorContainer.Resolve[T]()
In Abp.Dependency.IocManager.Resolve[T]() location D:\Github\aspnetboilerplate\src\Abp\Dependency\IocManager.cs:line 179
In Abp.Dependency.IocResolverExtensions.ResolveAsDisposable[T](IIocResolver iocResolver) location D:\Github\aspnetboilerplate\src\Abp\Dependency\IocResolverExtensions.cs:line 18
Castle.MicroKernel.ComponentNotFoundException
HResult=0x80131500
Message=No component for supporting the service was found
Source=Castle.Windsor
StackTrace:
at Castle.MicroKernel.DefaultKernel.Castle.MicroKernel.IKernelInternal.Resolve(Type service, Arguments arguments, IReleasePolicy policy, Boolean ignoreParentContext)
at Castle.MicroKernel.DefaultKernel.Resolve(Type service, Arguments arguments)
at Castle.Windsor.WindsorContainer.Resolve[T]()
at Abp.Dependency.IocManager.Resolve[T]()
at Abp.Dependency.IocResolverExtensions.ResolveAsDisposable[T](IIocResolver iocResolver)
Solution:
using (var bootstrapper = AbpBootstrapper.Create<OrderServiceModule>())
{
//bootstrapper.IocManager
// .IocContainer
// .AddFacility<LoggingFacility>(f => f.UseLog4Net().WithConfig(“log4net.config”));
bootstrapper.IocManager.IocContainer.AddFacility<LoggingFacility>(f => f.UseAbpLog4Net().WithConfig(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, “log4net.config”)));
bootstrapper.Initialize();
using (var bootstrapper = AbpBootstrapper.Create<OrderServiceModule>())
{
//bootstrapper.IocManager
// .IocContainer
// .AddFacility<LoggingFacility>(f => f.UseLog4Net().WithConfig(“log4net.config”));
bootstrapper.IocManager.IocContainer.AddFacility<LoggingFacility>(f => f.UseAbpLog4Net().WithConfig(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, “log4net.config”)));
bootstrapper.Initialize();
}
Read More:
- [Solved] MSP430F5529 Error initializing emulator:No USB FET was found
- [Solved] FileUploadException: the request was rejected because no multipart boundary was found
- Solution of Hibernate paging report only entering result set and not supporting requested operation
- [Solved] volatile was removed and now has no effect. Use `with torch.no_grad():` instead.
- An error was reported when Maven package was running the packaged jar package: there is no main list attribute in xxx.jar, which can be solved by configuring Maven plugin
- [Solved] error Component name “index“ should always be multi-word vue/multi-word-component-names
- [Solved] STM32F4 MDK5 Software Simulate Error: error 65: no ‘read‘ permission
- [Solved] @webservice Error: org.apache.cxf.common.i18n.UncheckedException: No operation was found with
- Error: Unable to build IHost No DbContext named ‘PersistedGrantDbContext‘ was found.
- SharePoint site shows ‘Service Unavailable. HTTP Error 503. The service is unavailable’
- [Solved] element-plus Error: Failed to resolve component
- Docker service startup error: Job for docker.service failed because the control process exited with error code.
- [Solved] keil5 Error: Error: L6915E: Library reports error: __use_no_semihosting was requested
- [Solved] Playbook Start Nginx Error: Unable to start service nginx: Job for nginx.service fd with error code
- Unknown custom element: [xxx] – did you register the component correctly…
- Vue3 Warning: [Vue warn]: Extraneous non-emits event listeners (changeParentProps) were passed to component
- [Sp;ved] Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ssm]
- Tomcat startup error: Failed to start component [StandardServer[8005]] solution
- Exe calls elastix with error – F – M [How to Solve]
- [Solved] Vue Error: Failed to mount component: template or render function not defined