Base solution for your next web application
Open Closed

Linker "All assemblies" causing issue on Abp-v5.10.1 #10282


User avatar
0
Leonardo.Willrich created

Prerequisites

  • What is your product version? 9.0.1
  • What is your product type (Angular or MVC)? MVC
  • What is product framework type (.net framework or .net core)? .net core

Hello,

When I tried to Linker "All assemblies" to reduce sizes but I am causing this issue. I tried to skip the below assemblies but still no luck.

  1. Castle.Core.AsyncInterceptor
  2. Castle.Facilities.Logging
  3. Castle.Core
  4. Castle.Windsor
  5. Abp
  6. Abp.AutoMapper

Below code throwing exception: AbpBootstrapper.Create<T>(options => { options.DisableAllInterceptors = true; }); Abp package version - 5.10.1 Base framework - .Net standard. Message=Could not instantiate custom activator Source=Castle.Windsor StackTrace: at Castle.MicroKernel.DefaultKernel.CreateComponentActivator (Castle.Core.ComponentModel model) [0x00083] in <7fa4ed9fe042449ab5a097b854c82d16>:0 at Castle.MicroKernel.Handlers.DefaultHandler.InitDependencies () [0x0000c] in <7fa4ed9fe042449ab5a097b854c82d16>:0 at Castle.MicroKernel.Handlers.AbstractHandler.Init (Castle.MicroKernel.IKernelInternal kernel) [0x0002c] in <7fa4ed9fe042449ab5a097b854c82d16>:0 at Castle.MicroKernel.Handlers.DefaultHandlerFactory.Create (Castle.Core.ComponentModel model) [0x00007] in <7fa4ed9fe042449ab5a097b854c82d16>:0 at Castle.MicroKernel.DefaultKernel.Castle.MicroKernel.IKernelInternal.CreateHandler (Castle.Core.ComponentModel model) [0x0001b] in <7fa4ed9fe042449ab5a097b854c82d16>:0 at Castle.MicroKernel.DefaultKernel.AddCustomComponent (Castle.Core.ComponentModel model) [0x00000] in <7fa4ed9fe042449ab5a097b854c82d16>:0 at Castle.MicroKernel.Registration.ComponentRegistration`1[TService].Castle.MicroKernel.Registration.IRegistration.Register (Castle.MicroKernel.IKernelInternal kernel) [0x00056] in <7fa4ed9fe042449ab5a097b854c82d16>:0 at Castle.MicroKernel.DefaultKernel.Register (Castle.MicroKernel.Registration.IRegistration[] registrations) [0x0001b] in <7fa4ed9fe042449ab5a097b854c82d16>:0 at Castle.Windsor.WindsorContainer.Register (Castle.MicroKernel.Registration.IRegistration[] registrations) [0x00006] in <7fa4ed9fe042449ab5a097b854c82d16>:0 at Abp.Dependency.IocManager..ctor () [0x00036] in <52178ad3bb2d4b018609898d2b1ce89b>:0 at Abp.Dependency.IocManager..cctor () [0x0000a] in <52178ad3bb2d4b018609898d2b1ce89b>:0

To debug/reproduce the issue look into: https://github.com/Ajaysinh4377/AbpSample-V5.10.1.


1 Answer(s)