Muhammad Saqib Raza
unread,Jan 11, 2012, 10:51:29 AM1/11/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.