Quantcast
Viewing all articles
Browse latest Browse all 91519

Windsor Castle Core 4.1.1 issue

Hi,

I'm having problem while using Castle Core 4.1.1 library as IOC in Xamarin.Forms
In App.xaml.cs constructor I register components, then I push back button and exit application.
When I re-enter the application it throws exception.
I even dispose IOC but somehow the registration information is not being disposed.
Does anyone used Castle Core in Xamarin Forms. How to handle application lifecycles with Windsor Castle?

. 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.
  at Castle.MicroKernel.SubSystems.Naming.DefaultNamingSubSystem.Register (Castle.MicroKernel.IHandler handler) [0x00038] in <0361d5299f264ba48c4eefda324c2b18>:0
  at Castle.MicroKernel.DefaultKernel.AddCustomComponent (Castle.Core.ComponentModel model) [0x0000e] in <0361d5299f264ba48c4eefda324c2b18>:0
  at Castle.MicroKernel.Registration.ComponentRegistration`1[TService].Castle.MicroKernel.Registration.IRegistration.Register (Castle.MicroKernel.IKernelInternal kernel) [0x00056] in <0361d5299f264ba48c4eefda324c2b18>:0
  at Castle.MicroKernel.DefaultKernel.Register (Castle.MicroKernel.Registration.IRegistration[] registrations) [0x0001b] in <0361d5299f264ba48c4eefda324c2b18>:0
  at Castle.Windsor.WindsorContainer.Register (Castle.MicroKernel.Registration.IRegistration[] registrations) [0x00006] in <0361d5299f264ba48c4eefda324c2b18>:0
  at Abp.Dependency.Installers.AbpCoreInstaller.Install (Castle.Windsor.IWindsorContainer container, Castle.MicroKernel.SubSystems.Configuration.IConfigurationStore store) [0x00000] in D:\xxxx\yyyy\src\zzzz\Dependency\Installers\XyzCoreInstaller.cs:23
  at Castle.Windsor.WindsorContainer.Install (Castle.MicroKernel.Registration.IWindsorInstaller[] installers, Castle.Windsor.Installer.DefaultComponentInstaller scope) [0x00017] in <0361d5299f264ba48c4eefda324c2b18>:0

Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>