Exception while Configuring Container.

76 views
Skip to first unread message

Muhammad Saqib Raza

unread,
Jan 11, 2012, 10:51:29 AM1/11/12
to Castle Project Users
Hi,
I am using WindsorBootstrapper in my project. I have started with
castle windsor 2.1.1 version. But while deployment I ve start
recieving the following exception "ComponentActivator: Couldnot
Instantiate". Then to resolve this problem I thought there might be
some fix for the problem in the latest version and I have updated my
solution with castle 3.0. Now I have start getting compile time
exception while configuring container as follows: "Could not load
type ' Castle.MicroKernel.Registration.ConfigureDelegate' from
assembly 'Castle.Windsor, Version=3.0.0.0, Culture=neutral,
PublicKeyToken=407dd0808d44fbdc' ".
following is the code i ve written in my bootstarpper to configure the
container.

protected override void ConfigureContainer()
{
base.ConfigureContainer();


Container.Register(Component.For<ShellViewModel>().ImplementedBy<ShellViewModel>());

Container.Register(Component.For<Shell>().ImplementedBy<Shell>());
foreach (var moduleInfo in ModuleCatalog.Modules)
{

Container.Register(Component.For(Type.GetType(moduleInfo.ModuleType)));

}

}
this is one of my overriden method in my ownbootstrapper class which
is derived from WindsorBootStrapper class.

Can anyone has come across with the same problem or any idea about the
issue?. Please suggest some solution thanks.

Regards.
Saqib.

Krzysztof Koźmic

unread,
Jan 25, 2012, 6:56:58 PM1/25/12
to castle-pro...@googlegroups.com
Hi Muhammad

I don't know of

WindsorBootstrapper

so it probably is some 3rd party tool that you're trying to integrate
with. As far as Windsor goes, the code looks OK.

K

Reply all
Reply to author
Forward
0 new messages