Base solution for your next web application
Open Closed

Castle.MicroKernel.KernelException Issue with runing Xamarin on Real IOS Device #9921


User avatar
0
marius.isac created
  • What is your product version?v9.3.0
  • What is your product type (Angular or MVC)? Angular
  • What is product framework type (.net framework or .net core)? .Net Core

While the application works well on the iphone simulator, when trying to debug on real device with ios 14.3 An initialisation error occurs: Castle.MicroKernel.KernelException: Could not instantiate custom activator

at Castle.MicroKernel.DefaultKernel.CreateComponentActivator (Castle.Core.ComponentModel model) [0x00083] in <a1d60d1be0c24c8ca16d12bbd69e411e>:0

at Castle.MicroKernel.Handlers.DefaultHandler.InitDependencies () [0x0000c] in <a1d60d1be0c24c8ca16d12bbd69e411e>:0

at Castle.MicroKernel.Handlers.AbstractHandler.Init (Castle.MicroKernel.IKernelInternal kernel) [0x0002c] in <a1d60d1be0c24c8ca16d12bbd69e411e>:0

at Castle.MicroKernel.Handlers.DefaultHandlerFactory.Create (Castle.Core.ComponentModel model) [0x00007] in <a1d60d1be0c24c8ca16d12bbd69e411e>:0

at Castle.MicroKernel.DefaultKernel.Castle.MicroKernel.IKernelInternal.CreateHandler (Castle.Core.ComponentModel model) [0x0001b] in <a1d60d1be0c24c8ca16d12bbd69e411e>:0

at Castle.MicroKernel.DefaultKernel.AddCustomComponent (Castle.Core.ComponentModel model) [0x00000] in <a1d60d1be0c24c8ca16d12bbd69e411e>:0

at Castle.MicroKernel.Registration.ComponentRegistration`1[TService].Castle.MicroKernel.Registration.IRegistration.Register (Castle.MicroKernel.IKernelInternal kernel) [0x00056] in

at Castle.MicroKernel.DefaultKernel.Register (Castle.MicroKernel.Registration.IRegistration[] registrations) [0x0001b] in

at Castle.Windsor.WindsorContainer.Register (Castle.MicroKernel.Registration.IRegistration[] registrations) [0x00006] in

at Abp.Dependency.IocManager..ctor () [0x0001d] in D:\Github\aspnetboilerplate\src\Abp\Dependency\IocManager.cs:59

at Abp.Dependency.IocManager..cctor () [0x0000a] in D:\Github\aspnetboilerplate\src\Abp\Dependency\IocManager.cs:45

Type Castle.MicroKernel.ComponentActivator.ExternalInstanceActivator does not have a public constructor matching arguments of the following types:

Castle.Core.ComponentModel

Castle.MicroKernel.DefaultKernel

Castle.MicroKernel.ComponentInstanceDelegate

Castle.MicroKernel.ComponentInstanceDelegate

Error occurs on IocManager.RegisterAssemblyByConvention(typeof(ServiceAppNewXamarinIosModule).GetAssembly());

Any suggestions?


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

    Hi @marius.isac

    Could you download a new Demo application for 9.3 version and see if same error happens ?

    Thanks,