AccessViolationException while running windsor installer

11 views
Skip to first unread message

Scott_M

unread,
Jun 9, 2015, 3:12:59 PM6/9/15
to castle-pro...@googlegroups.com
Using Castle Windsor 3.3.0 in our ASP.NET 3.51 app.  We occasionally experience  AccessViolationException during Windsor installer.  What causes this error?  How can we prevent it?

[AccessViolationException]: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at Castle.MicroKernel.ModelBuilder.Inspectors.LifestyleModelInspector.ReadLifestyleFromConfiguration(ComponentModel model)
   at Castle.MicroKernel.ModelBuilder.Inspectors.LifestyleModelInspector.ProcessModel(IKernel kernel, ComponentModel model)
   at Castle.MicroKernel.ModelBuilder.DefaultComponentModelBuilder.<>c__DisplayClass6.<BuildModel>b__4(IContributeComponentModelConstruction c)
   at System.Collections.Generic.List`1.ForEach(Action`1 action)
   at Castle.MicroKernel.ModelBuilder.DefaultComponentModelBuilder.BuildModel(IComponentModelDescriptor[] customContributors)
   at Castle.MicroKernel.Registration.ComponentRegistration`1.Castle.MicroKernel.Registration.IRegistration.Register(IKernelInternal kernel)
   at Castle.MicroKernel.DefaultKernel.Register(IRegistration[] registrations)
   at Castle.Windsor.WindsorContainer.Register(IRegistration[] registrations)
   at CT.iMagio2.Integrations.SSRS.Web.Installer.MasterInstaller.Install(IWindsorContainer container, IConfigurationStore store)
   at Castle.Windsor.WindsorContainer.Install(IWindsorInstaller[] installers, DefaultComponentInstaller scope)
   at Castle.Windsor.WindsorContainer.Install(IWindsorInstaller[] installers)
   at Castle.Windsor.Installer.DefaultComponentInstaller.SetUpInstallers(IConfiguration[] installers, IWindsorContainer container, IConversionManager converter)
   at Castle.Windsor.Installer.DefaultComponentInstaller.SetUp(IWindsorContainer container, IConfigurationStore store)
   at Castle.Windsor.WindsorContainer.RunInstaller()
   at CT.Acme.Shared.SSOModules.BootStrapModule.DoSetup()

thanks

scott

hammett

unread,
Jun 9, 2015, 3:41:27 PM6/9/15
to castle-pro...@googlegroups.com
You may want to try a debug build of windsor to help pinpoint the line
of the error, but looking at
https://github.com/castleproject/Windsor/blob/016730de012f15985410fb33e2eb907690fe5a28/src/Castle.Windsor/MicroKernel/ModelBuilder/Inspectors/LifestyleModelInspector.cs
there doesnt seem to be anything fancy dealing with direct memory to
cause such error.
> --
> You received this message because you are subscribed to the Google Groups
> "Castle Project Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to castle-project-u...@googlegroups.com.
> To post to this group, send email to castle-pro...@googlegroups.com.
> Visit this group at http://groups.google.com/group/castle-project-users.
> For more options, visit https://groups.google.com/d/optout.



--
Cheers,
hammett
http://www.d-collab.com/
http://www.hammettblog.com/
Reply all
Reply to author
Forward
0 new messages